<?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# Generics and anonymous methods</title>
	<atom:link href="http://www.svendtofte.com/csharp/c-generics-and-anonymous-methods/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.svendtofte.com/csharp/c-generics-and-anonymous-methods/</link>
	<description>rantings &#38; scraps on code and web development</description>
	<lastBuildDate>Sun, 11 Jul 2010 11:58:33 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Oleg Kosenkov</title>
		<link>http://www.svendtofte.com/csharp/c-generics-and-anonymous-methods/comment-page-1/#comment-127</link>
		<dc:creator>Oleg Kosenkov</dc:creator>
		<pubDate>Fri, 03 Apr 2009 21:18:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.svendtofte.com/?p=155#comment-127</guid>
		<description>Surprisingly, nothing was sad about the StringBuilder class which may handle the string concatenations in a more optimal way. I have not looked under the hood of the framework but i hope the suggested functional lambda version does it optimally.</description>
		<content:encoded><![CDATA[<p>Surprisingly, nothing was sad about the StringBuilder class which may handle the string concatenations in a more optimal way. I have not looked under the hood of the framework but i hope the suggested functional lambda version does it optimally.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jason Bunting</title>
		<link>http://www.svendtofte.com/csharp/c-generics-and-anonymous-methods/comment-page-1/#comment-102</link>
		<dc:creator>Jason Bunting</dc:creator>
		<pubDate>Fri, 28 Nov 2008 16:55:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.svendtofte.com/?p=155#comment-102</guid>
		<description>Your last example there can be shorted even further to this:

   s = string.Join(&quot; OR &quot;, 
      gs.ConvertAll(
         g =&gt; string.Format(&quot;Id=&#039;{0}&#039;&quot;, g)
      ).ToArray()
   );

The part in yours where you do the &quot;new Converter&quot; is inferred by the compiler, so it is really unnecessary. Also, you don&#039;t have to explicitly call ToString() on g, since string.Format will do that internally regardless.</description>
		<content:encoded><![CDATA[<p>Your last example there can be shorted even further to this:</p>
<p>   s = string.Join(&#8221; OR &#8220;,<br />
      gs.ConvertAll(<br />
         g =&gt; string.Format(&#8220;Id=&#8217;{0}&#8217;&#8221;, g)<br />
      ).ToArray()<br />
   );</p>
<p>The part in yours where you do the &#8220;new Converter&#8221; is inferred by the compiler, so it is really unnecessary. Also, you don&#8217;t have to explicitly call ToString() on g, since string.Format will do that internally regardless.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
