Developed by Microsoft’s Research in Software Engineering, Code Contracts provide a way to convey code assumptions in your .NET applications. They can take the form of preconditions, postconditions, and state invariants. In C# Code Contracts Succinctly, author Dirk Strauss demonstrates how to use Code Contracts to validate logical correctness in code, how they can be integrated with abstract classes and interfaces, and even how they can be used to make writing documentation less painful.
Using Code Contracts
Some Useful Tips
Testing Code Contracts
Code Contracts Editor Extensions
Tools and Resources
Mar 28, 2016
Looking for something specific? Try our title or author search.