<?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"
	>
<channel>
	<title>Comments on: Nullable Types in C#</title>
	<atom:link href="http://www.alteridem.net/2007/08/14/nullable-types-in-c/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.alteridem.net/2007/08/14/nullable-types-in-c/</link>
	<description>Software by Design</description>
	<pubDate>Fri, 04 Jul 2008 03:16:32 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
		<item>
		<title>By: Judah</title>
		<link>http://www.alteridem.net/2007/08/14/nullable-types-in-c/#comment-1151</link>
		<dc:creator>Judah</dc:creator>
		<pubDate>Fri, 17 Aug 2007 19:57:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.alteridem.net/2007/08/14/nullable-types-in-c/#comment-1151</guid>
		<description>Actually, ?? works on any reference or Nullable type.

For example, 

string IamNull = null;
string nonNull = "foo";
string s = IamNull ?? nonNull;

s gets set to nonNull</description>
		<content:encoded><![CDATA[<p>Actually, ?? works on any reference or Nullable type.</p>
<p>For example, </p>
<p>string IamNull = null;<br />
string nonNull = &#8220;foo&#8221;;<br />
string s = IamNull ?? nonNull;</p>
<p>s gets set to nonNull</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Padraig</title>
		<link>http://www.alteridem.net/2007/08/14/nullable-types-in-c/#comment-1150</link>
		<dc:creator>Padraig</dc:creator>
		<pubDate>Fri, 17 Aug 2007 16:47:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.alteridem.net/2007/08/14/nullable-types-in-c/#comment-1150</guid>
		<description>Don't forget the ?? shortcut for GetValueOrDefault

int m = i ?? 0;

m will have the value 0 if i is null, or i if it is not null.</description>
		<content:encoded><![CDATA[<p>Don&#8217;t forget the ?? shortcut for GetValueOrDefault</p>
<p>int m = i ?? 0;</p>
<p>m will have the value 0 if i is null, or i if it is not null.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave Ward</title>
		<link>http://www.alteridem.net/2007/08/14/nullable-types-in-c/#comment-1149</link>
		<dc:creator>Dave Ward</dc:creator>
		<pubDate>Fri, 17 Aug 2007 16:22:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.alteridem.net/2007/08/14/nullable-types-in-c/#comment-1149</guid>
		<description>I like the readability of .HasValue.</description>
		<content:encoded><![CDATA[<p>I like the readability of .HasValue.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Judah</title>
		<link>http://www.alteridem.net/2007/08/14/nullable-types-in-c/#comment-1147</link>
		<dc:creator>Judah</dc:creator>
		<pubDate>Tue, 14 Aug 2007 16:45:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.alteridem.net/2007/08/14/nullable-types-in-c/#comment-1147</guid>
		<description>You don't have to use the .HasValue property. The compiler is smart enough to figure out what you mean if you say something like

int? i = 5;
if(i != null)
{
    // use it here
}</description>
		<content:encoded><![CDATA[<p>You don&#8217;t have to use the .HasValue property. The compiler is smart enough to figure out what you mean if you say something like</p>
<p>int? i = 5;<br />
if(i != null)<br />
{<br />
    // use it here<br />
}</p>
]]></content:encoded>
	</item>
</channel>
</rss>
