Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Code contract and defensive programming library for .Net 2.0?

Are there any defensive programming libraries (like Code contract , assert libraries for c# .Net 2.0).

like image 268
yesraaj Avatar asked Dec 08 '25 12:12

yesraaj


1 Answers

You mean other than Code Contracts itself? What's wrong with it?

Because code contracts supports .NET 2.0... or so I guess from this comment on the FAQ:

If you are not using it (for instance, you are using .NET 2.0 or 3.5), then you are using the implementation of the contract class supplied in the assembly Microsoft.Contracts.dll and Debug.Assert is called with an appropriate string specifying what kind of failure was encountered

like image 94
Jorge Córdoba Avatar answered Dec 12 '25 00:12

Jorge Córdoba



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!