开发者

Code contract and defensive programming library for .Net 2.0?

开发者 https://www.devze.com 2023-02-10 21:20 出处:网络
Are there any defensive programming libraries (like Code contract , assert libraries for c# .Net开发者_高级运维 2.0). You mean other than Code Contracts itself? What\'s wrong with it?

Are there any defensive programming libraries (like Code contract , assert libraries for c# .Net开发者_高级运维 2.0).


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

0

精彩评论

暂无评论...
验证码 换一张
取 消