5,308 votesFelix commented
Actually, this feature exists in .Net and his name is Code constracts for Visual Studio or C# extension called Spec#. For this validations, it's a best way. I think if you use the CbD's library, your code could be ugly. Then, I suggest add Spec# core into C#.
1 voteFelix shared this idea ·
123 votesFelix commented
one word: Perfect
this idea have a lot of advantages.
i don't explain all reasons, but recommend read Meyer's book: Object-Oriented Software Construction. In this book describe this feature in details.
Please allow it.