developers.de
daenet's .NET Community

Code Contracts in .NET 4.0

Damir Dobric Posts

 

Damir@Phone    



My upcoming sessions:

AppFabric Applications at
NRW Conf 2011
09.Sept.2011 Wuppertal

HTML5 widgets in WP7+
Monodroid
Mobility Day
21.Sept.2011 - Zagreb

AppFabric and WCF sessions at
Advanced Developer Conference
26.-27. Oktober 2011 in Frankenthal

AppFabric Applications, queues, topics and more at
Prio Conference
02. - 03. November 2011 in Meistersingerhalle Nürnberg

AppFabric Applications deep dive hosted by
.NET User Group Frankfurt
17.Nov.2011 18.30-22.30 Microsoft - Bad Homburg 

 

 

Since Visual Studio 10 BETA 1, the code contract library is fully integrated in .NET Framework 4.0. The VS 10 BETA1 installs by default the framework version 4.0.205506. In installation folder of .NET 4.0 there is as usual assembly mscorlib.dll which implements Code Contract functionality in the namespace System.Diagnostics.Contracts.

image

Code Contract static methods are by default integrated in the framework, but if you want to use full functionality with static and dynamic checking, you should install the code contract package.

After installing following will appear in project settings:

image

Remarks: Run as Administrator on the picture above does not belongs to contract library!


Posted May 31 2009, 01:42 PM by Damir Dobric

Add a Comment

(required)  
(optional)
(required)  
Remember Me?
daenet GmbH