.NET FrameworkCode Contracts

Download .NET Framework for free


Code contracts allow for compile or runtime analysis of pre/post conditions of methods and invariant conditions for objects. These conditions may be used to ensure callers and return value match valid states for application processing. Other uses for Code Contracts include documentation generation.

Related Examples

Contracts for Interfaces