New version of Code Contracts
Microsoft DevLabs released a new version of Code Contracts yesterday, for both .NET 3.5 and 4.0 frameworks. You can download it at http://msdn.microsoft.com/en-us/devlabs/dd491992.aspx.
Included in the new build are bug fixes and some nifty new features, such as the [ContractArgumentValidator] attribute to mark helper methods that perform if-then-throw style parameter validation (so the tools can recognize legacy "requires" methods) and the [ContractAbbreviator] attribute to mark methods that contain reusable Contract.Requires and Contract.Ensures calls.














