<?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: Safe Cast for No Good Reason</title>
	<atom:link href="http://johnnycoder.com/blog/2008/06/10/safe-cast-for-no-good-reason/feed/" rel="self" type="application/rss+xml" />
	<link>http://johnnycoder.com/blog/2008/06/10/safe-cast-for-no-good-reason/</link>
	<description></description>
	<lastBuildDate>Sat, 19 May 2012 20:42:47 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: firo</title>
		<link>http://johnnycoder.com/blog/2008/06/10/safe-cast-for-no-good-reason/comment-page-1/#comment-233829</link>
		<dc:creator>firo</dc:creator>
		<pubDate>Tue, 01 Feb 2011 08:46:49 +0000</pubDate>
		<guid isPermaLink="false">http://johnnycoder.com/blog/2008/06/10/safe-cast-for-no-good-reason/#comment-233829</guid>
		<description>I think there is a nice use case for it.

public override bool Equals(object obj)
{
    var other = obj as MyClass;
    return (other != null) &amp;&amp; (this.Id == other.Id)
}

check for &#039;is&#039; and null in one</description>
		<content:encoded><![CDATA[<p>I think there is a nice use case for it.</p>
<p>public override bool Equals(object obj)<br />
{<br />
    var other = obj as MyClass;<br />
    return (other != null) &amp;&amp; (this.Id == other.Id)<br />
}</p>
<p>check for &#8216;is&#8217; and null in one</p>
]]></content:encoded>
	</item>
</channel>
</rss>

