<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"><channel><title>Andrey Shchekin's Blog - Latest Comments in Simple typeswitch in C# 3.0, Part 2: The Solutions</title><link>http://ashmind.disqus.com/</link><description></description><language>en</language><lastBuildDate>Sun, 26 Apr 2009 15:30:29 -0000</lastBuildDate><item><title>Re: Simple typeswitch in C# 3.0, Part 2: The Solutions</title><link>http://blog.ashmind.com/index.php/2007/09/20/simple-typeswitch-in-c-30-part-2-the-solutions/#comment-8707932</link><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><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Clarityx</dc:creator><pubDate>Sun, 26 Apr 2009 15:30:29 -0000</pubDate></item><item><title>Re: Simple typeswitch in C# 3.0, Part 2: The Solutions</title><link>http://blog.ashmind.com/index.php/2007/09/20/simple-typeswitch-in-c-30-part-2-the-solutions/#comment-2506445</link><description>3 comments</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Nina</dc:creator><pubDate>Sat, 13 Oct 2007 06:49:09 -0000</pubDate></item><item><title>Re: Simple typeswitch in C# 3.0, Part 2: The Solutions</title><link>http://blog.ashmind.com/index.php/2007/09/20/simple-typeswitch-in-c-30-part-2-the-solutions/#comment-2506444</link><description>Yes, I have seen a post on a similar problem with LINQ.&lt;br&gt;Type inference has its limits.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">ashmind</dc:creator><pubDate>Fri, 21 Sep 2007 16:23:41 -0000</pubDate></item><item><title>Re: Simple typeswitch in C# 3.0, Part 2: The Solutions</title><link>http://blog.ashmind.com/index.php/2007/09/20/simple-typeswitch-in-c-30-part-2-the-solutions/#comment-2506443</link><description>Would your switch get confused if it cannot infer the return type from the first case?&lt;br&gt;&lt;br&gt;string result = Switch.Type(document)&lt;br&gt;        .Case((XsltDocument d) =&amp;gt; null)&lt;br&gt;        .Case((XmlDocument d) =&amp;gt; “Xml”)&lt;br&gt;        .Otherwise(d =&amp;gt; “Not Xml and not Xslt”)&lt;br&gt;        .Result;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Andrey Titov</dc:creator><pubDate>Fri, 21 Sep 2007 11:38:34 -0000</pubDate></item></channel></rss>