<?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: Simple typeswitch in C# 3.0, Part 2: The Solutions</title>
	<atom:link href="http://blog.ashmind.com/2007/09/20/simple-typeswitch-in-c-30-part-2-the-solutions/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.ashmind.com/2007/09/20/simple-typeswitch-in-c-30-part-2-the-solutions/</link>
	<description></description>
	<lastBuildDate>Mon, 16 Apr 2012 16:08:36 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1</generator>
	<item>
		<title>By: Clarityx</title>
		<link>http://blog.ashmind.com/2007/09/20/simple-typeswitch-in-c-30-part-2-the-solutions/comment-page-1/#comment-1673</link>
		<dc:creator>Clarityx</dc:creator>
		<pubDate>Mon, 27 Apr 2009 03:30:29 +0000</pubDate>
		<guid isPermaLink="false">http://blog.ashmind.com/index.php/2007/09/20/simple-typeswitch-in-c-30-part-2-the-solutions/#comment-1673</guid>
		<description>Interesting post. Appreciate it as I have seen something new now.&lt;br&gt;Can I use this info on my blog using the direct link to your blog? Thanks in advance</description>
		<content:encoded><![CDATA[<p>Interesting post. Appreciate it as I have seen something new now.<br />Can I use this info on my blog using the direct link to your blog? Thanks in advance</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Clarityx</title>
		<link>http://blog.ashmind.com/2007/09/20/simple-typeswitch-in-c-30-part-2-the-solutions/comment-page-1/#comment-1627</link>
		<dc:creator>Clarityx</dc:creator>
		<pubDate>Sun, 26 Apr 2009 19:30:29 +0000</pubDate>
		<guid isPermaLink="false">http://blog.ashmind.com/index.php/2007/09/20/simple-typeswitch-in-c-30-part-2-the-solutions/#comment-1627</guid>
		<description>Interesting post. Appreciate it as I have seen something new now.&lt;br&gt;Can I use this info on my blog using the direct link to your blog? Thanks in advance</description>
		<content:encoded><![CDATA[<p>Interesting post. Appreciate it as I have seen something new now.<br />Can I use this info on my blog using the direct link to your blog? Thanks in advance</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: data backup</title>
		<link>http://blog.ashmind.com/2007/09/20/simple-typeswitch-in-c-30-part-2-the-solutions/comment-page-1/#comment-1613</link>
		<dc:creator>data backup</dc:creator>
		<pubDate>Mon, 06 Apr 2009 11:50:53 +0000</pubDate>
		<guid isPermaLink="false">http://blog.ashmind.com/index.php/2007/09/20/simple-typeswitch-in-c-30-part-2-the-solutions/#comment-1613</guid>
		<description>just exactly what I needed, thanks for clearing up things on my mind.</description>
		<content:encoded><![CDATA[<p>just exactly what I needed, thanks for clearing up things on my mind.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nina</title>
		<link>http://blog.ashmind.com/2007/09/20/simple-typeswitch-in-c-30-part-2-the-solutions/comment-page-1/#comment-331</link>
		<dc:creator>Nina</dc:creator>
		<pubDate>Sat, 13 Oct 2007 10:49:09 +0000</pubDate>
		<guid isPermaLink="false">http://blog.ashmind.com/index.php/2007/09/20/simple-typeswitch-in-c-30-part-2-the-solutions/#comment-331</guid>
		<description>3 comments</description>
		<content:encoded><![CDATA[<p>3 comments</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andrey Shchekin</title>
		<link>http://blog.ashmind.com/2007/09/20/simple-typeswitch-in-c-30-part-2-the-solutions/comment-page-1/#comment-296</link>
		<dc:creator>Andrey Shchekin</dc:creator>
		<pubDate>Fri, 21 Sep 2007 20:23:41 +0000</pubDate>
		<guid isPermaLink="false">http://blog.ashmind.com/index.php/2007/09/20/simple-typeswitch-in-c-30-part-2-the-solutions/#comment-296</guid>
		<description>Yes, I have seen a post on a similar problem with LINQ.
Type inference has its limits.</description>
		<content:encoded><![CDATA[<p>Yes, I have seen a post on a similar problem with LINQ.<br />
Type inference has its limits.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andrey Titov</title>
		<link>http://blog.ashmind.com/2007/09/20/simple-typeswitch-in-c-30-part-2-the-solutions/comment-page-1/#comment-295</link>
		<dc:creator>Andrey Titov</dc:creator>
		<pubDate>Fri, 21 Sep 2007 15:38:34 +0000</pubDate>
		<guid isPermaLink="false">http://blog.ashmind.com/index.php/2007/09/20/simple-typeswitch-in-c-30-part-2-the-solutions/#comment-295</guid>
		<description>Would your switch get confused if it cannot infer the return type from the first case?

string result = Switch.Type(document)
        .Case((XsltDocument d) =&gt; null)
        .Case((XmlDocument d) =&gt; “Xml”)
        .Otherwise(d =&gt; “Not Xml and not Xslt”)
        .Result;</description>
		<content:encoded><![CDATA[<p>Would your switch get confused if it cannot infer the return type from the first case?</p>
<p>string result = Switch.Type(document)<br />
        .Case((XsltDocument d) =&gt; null)<br />
        .Case((XmlDocument d) =&gt; “Xml”)<br />
        .Otherwise(d =&gt; “Not Xml and not Xslt”)<br />
        .Result;</p>
]]></content:encoded>
	</item>
</channel>
</rss>

