<?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: CastAs() Extension Method. Should It Stay Or Should It Go?</title>
	<atom:link href="http://software.herbrandson.com/index.php/2009/08/castas-extension-method-should-it-stay-or-should-it-go/feed/" rel="self" type="application/rss+xml" />
	<link>http://software.herbrandson.com/index.php/2009/08/castas-extension-method-should-it-stay-or-should-it-go/</link>
	<description>Just another WordPress weblog</description>
	<pubDate>Sat, 31 Jul 2010 15:48:18 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Nathan</title>
		<link>http://software.herbrandson.com/index.php/2009/08/castas-extension-method-should-it-stay-or-should-it-go/comment-page-1/#comment-465</link>
		<dc:creator>Nathan</dc:creator>
		<pubDate>Mon, 24 Aug 2009 19:53:37 +0000</pubDate>
		<guid isPermaLink="false">http://software.herbrandson.com/?p=115#comment-465</guid>
		<description>Get your CastAs function to throw a friendly exception.

I like the last way you did it, the best. It's true that you may never need the class1 object in the future.

If you end up doing this cast a lot, you could just write a function for Class2, called class2.GetClass1(); or better yet, class2.Class1AMethod();</description>
		<content:encoded><![CDATA[<p>Get your CastAs function to throw a friendly exception.</p>
<p>I like the last way you did it, the best. It&#8217;s true that you may never need the class1 object in the future.</p>
<p>If you end up doing this cast a lot, you could just write a function for Class2, called class2.GetClass1(); or better yet, class2.Class1AMethod();</p>
]]></content:encoded>
	</item>
</channel>
</rss>
