Thoughts on the Code Contracts Preview for .NET 4.0

Posted by: K. Scott Allen, on 24 Feb 2009 | View original | Bookmarked: 0 time(s)

A new Code Contracts preview is now available on DevLabs. Code Contracts will be part of the base class library in .NET 4.0 (included in mscorlib), and facilitate a Design by Contract programming approach. You can describe pre-conditions, post-conditions, and object invariants. The Code Lets borrow a couple ideas from Matts DbC post (he was using Spec#, which was a precursor) to see what Code Contracts will look like. public void Run() { TargetResult result = LaunchMissle(new Target()); } public...

Advertisement
Free Agile Project Management Tool from Telerik
TeamPulse Community Edition helps your team effectively capture requirements, manage project plans, assign and track work, and most importantly, be continually connected with each other.
Category: Refactor | Other Posts: View all posts by this blogger | Report as irrelevant | View bloggers stats | Views: 1221 | Hits: 65

Similar Posts

  • Foxit PDF Previewer update more
  • Winforms Release History : Q2 2009 SP1 (version 2009.2.9.729) more
  • ASP.NET MVC Source Refresh Preview more
  • First Service Factory v3 Community Drop more
  • Updated to MS Ajax RC more
  • XLinq Design Issues - What Do You Think? more
  • Concert review more

News Categories

.NET | Agile | Ajax | Architecture | ASP.NET | BizTalk | C# | Certification | Data | DataGrid | DataSet | Debugger | DotNetNuke | Events | GridView | IIS | Indigo | JavaScript | Mobile | Mono | Patterns and Practices | Performance | Podcast | Refactor | Regex | Security | Sharepoint | Silverlight | Smart Client Applications | Software | SQL | VB.NET | Visual Studio | W3 | WCF | WinFx | WPF | WSE | XAML | XLinq | XML | XSD