<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Code Contracts #7: Relation to Guard classes</title>
	<atom:link href="http://www.minddriven.de/index.php/technology/dot-net/code-contracts/code-contracts-relation-to-guard-classes/feed" rel="self" type="application/rss+xml" />
	<link>http://www.minddriven.de/index.php/technology/dot-net/code-contracts/code-contracts-relation-to-guard-classes</link>
	<description>Matthias Jauernig -- .NET technology, architecture and design</description>
	<lastBuildDate>Thu, 02 Feb 2012 06:42:23 +0100</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1</generator>
	<item>
		<title>By: Derek Greer</title>
		<link>http://www.minddriven.de/index.php/technology/dot-net/code-contracts/code-contracts-relation-to-guard-classes/comment-page-1#comment-4158</link>
		<dc:creator>Derek Greer</dc:creator>
		<pubDate>Thu, 01 Oct 2009 07:13:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.leading-edge-dev.de/?p=438#comment-4158</guid>
		<description>&quot;... Code Contracts go beyond guard classes and because they are a core component of .NET 4.0, you don’t need custom guard classes any longer. Simply use contracts instead…&quot;

According to Ward Cunningham, guard clauses differ from assertions in that they make a tangible contribution to the logic of the method and thus cannot be safely omitted as part of an optimization.  This means that true guard clauses can&#039;t be replaced with Code Contracts given their configurability.</description>
		<content:encoded><![CDATA[<p>&#8220;&#8230; Code Contracts go beyond guard classes and because they are a core component of .NET 4.0, you don’t need custom guard classes any longer. Simply use contracts instead…&#8221;</p>
<p>According to Ward Cunningham, guard clauses differ from assertions in that they make a tangible contribution to the logic of the method and thus cannot be safely omitted as part of an optimization.  This means that true guard clauses can&#8217;t be replaced with Code Contracts given their configurability.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

