<?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: C# LINQ Teaser</title>
	<atom:link href="http://kossovsky.net/index.php/2009/07/csharp-linq-teaser/feed/" rel="self" type="application/rss+xml" />
	<link>http://kossovsky.net/index.php/2009/07/csharp-linq-teaser/</link>
	<description>C# Code Snippets, ASP.NET Code Samples, .NET Tips and Tricks</description>
	<lastBuildDate>Tue, 31 Jan 2012 06:04:50 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1</generator>
	<item>
		<title>By: absurd</title>
		<link>http://kossovsky.net/index.php/2009/07/csharp-linq-teaser/comment-page-1/#comment-3570</link>
		<dc:creator>absurd</dc:creator>
		<pubDate>Tue, 06 Apr 2010 22:55:57 +0000</pubDate>
		<guid isPermaLink="false">http://kossovsky.net/?p=517#comment-3570</guid>
		<description>Try this

static void Main(string[] args)
{
    int[] array = new[] {1, 2, 3, 4, 5, 6, 7, 8, 9, 10};

    Func&lt;int, int&gt; func = i =&gt; {
                          Console.Write(array[i]);
                          return i;
                     };

	var result = array.Where(e =&gt; e &lt;= func(2));   
		
	foreach (var w in result)
		Console.WriteLine(w);
}</description>
		<content:encoded><![CDATA[<p>Try this</p>
<p>static void Main(string[] args)<br />
{<br />
    int[] array = new[] {1, 2, 3, 4, 5, 6, 7, 8, 9, 10};</p>
<p>    Func&lt;int, int&gt; func = i =&gt; {<br />
                          Console.Write(array[i]);<br />
                          return i;<br />
                     };</p>
<p>	var result = array.Where(e =&gt; e &lt;= func(2));   </p>
<p>	foreach (var w in result)<br />
		Console.WriteLine(w);<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: A</title>
		<link>http://kossovsky.net/index.php/2009/07/csharp-linq-teaser/comment-page-1/#comment-446</link>
		<dc:creator>A</dc:creator>
		<pubDate>Sat, 29 Aug 2009 11:22:36 +0000</pubDate>
		<guid isPermaLink="false">http://kossovsky.net/?p=517#comment-446</guid>
		<description>Great Teaser.

More, More...</description>
		<content:encoded><![CDATA[<p>Great Teaser.</p>
<p>More, More&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gregory Kornblum</title>
		<link>http://kossovsky.net/index.php/2009/07/csharp-linq-teaser/comment-page-1/#comment-76</link>
		<dc:creator>Gregory Kornblum</dc:creator>
		<pubDate>Mon, 13 Jul 2009 23:29:18 +0000</pubDate>
		<guid isPermaLink="false">http://kossovsky.net/?p=517#comment-76</guid>
		<description>I would simply refuse to answer on the basis that the code is not written using the best practice of writing easily understood code due to naming conventions used ;)

Seriously, nice one. I had to read it like 10 times before I got the answer. Albeit I don&#039;t specialize in the MS stack alone.</description>
		<content:encoded><![CDATA[<p>I would simply refuse to answer on the basis that the code is not written using the best practice of writing easily understood code due to naming conventions used <img src='http://kossovsky.net/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>Seriously, nice one. I had to read it like 10 times before I got the answer. Albeit I don&#8217;t specialize in the MS stack alone.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Xander</title>
		<link>http://kossovsky.net/index.php/2009/07/csharp-linq-teaser/comment-page-1/#comment-60</link>
		<dc:creator>Xander</dc:creator>
		<pubDate>Mon, 13 Jul 2009 06:43:40 +0000</pubDate>
		<guid isPermaLink="false">http://kossovsky.net/?p=517#comment-60</guid>
		<description>&lt;a href=&quot;#comment-57&quot; rel=&quot;nofollow&quot;&gt;@Paul Betts &lt;/a&gt; 
This is what tricky question is supposed to do :)
I&#039;m replacing your &lt;strong&gt;CORRECT&lt;/strong&gt; answer with &quot;CORRECT ANSWER&quot;, so others will have the opportunity to solve it on their own.</description>
		<content:encoded><![CDATA[<p><a href="#comment-57" rel="nofollow">@Paul Betts </a><br />
This is what tricky question is supposed to do <img src='http://kossovsky.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
I&#8217;m replacing your <strong>CORRECT</strong> answer with &#8220;CORRECT ANSWER&#8221;, so others will have the opportunity to solve it on their own.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paul Betts</title>
		<link>http://kossovsky.net/index.php/2009/07/csharp-linq-teaser/comment-page-1/#comment-57</link>
		<dc:creator>Paul Betts</dc:creator>
		<pubDate>Sun, 12 Jul 2009 22:07:49 +0000</pubDate>
		<guid isPermaLink="false">http://kossovsky.net/?p=517#comment-57</guid>
		<description>It will print the number 3 to stdout 10 times (so &#039;*CORRECT ANSWER&#039;), and result will be {1,2}. Tricky question though, easy to get it wrong and say &#039;12345678910&#039; :)</description>
		<content:encoded><![CDATA[<p>It will print the number 3 to stdout 10 times (so &#8216;*CORRECT ANSWER&#8217;), and result will be {1,2}. Tricky question though, easy to get it wrong and say &#8217;12345678910&#8242; <img src='http://kossovsky.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
</channel>
</rss>

