<?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: Extend a Generic List to Provide Dictionary-Like Lookups</title>
	<atom:link href="http://www.alvinashcraft.com/2008/09/22/extend-a-generic-list-to-provide-dictionary-like-lookups/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.alvinashcraft.com/2008/09/22/extend-a-generic-list-to-provide-dictionary-like-lookups/</link>
	<description>.NET Development Resources from a Progressive.NET Perspective</description>
	<lastBuildDate>Thu, 11 Mar 2010 08:48:50 -0800</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Weekly Link Post 61 &#171; Rhonda Tipton&#8217;s WebLog</title>
		<link>http://www.alvinashcraft.com/2008/09/22/extend-a-generic-list-to-provide-dictionary-like-lookups/comment-page-1/#comment-594</link>
		<dc:creator>Weekly Link Post 61 &#171; Rhonda Tipton&#8217;s WebLog</dc:creator>
		<pubDate>Sun, 28 Sep 2008 23:49:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.alvinashcraft.com/2008/09/22/extend-a-generic-list-to-provide-dictionary-like-lookups/#comment-594</guid>
		<description>[...] Ashcraft shows us how to Extend a Generic List to Provide Dictionary-Like Lookups. &#8220;This is an abstracted example of what I did to simplify and centralize that code in a [...]</description>
		<content:encoded><![CDATA[<p>[...] Ashcraft shows us how to Extend a Generic List to Provide Dictionary-Like Lookups. &#8220;This is an abstracted example of what I did to simplify and centralize that code in a [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jean-Philippe Leconte</title>
		<link>http://www.alvinashcraft.com/2008/09/22/extend-a-generic-list-to-provide-dictionary-like-lookups/comment-page-1/#comment-591</link>
		<dc:creator>Jean-Philippe Leconte</dc:creator>
		<pubDate>Tue, 23 Sep 2008 20:10:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.alvinashcraft.com/2008/09/22/extend-a-generic-list-to-provide-dictionary-like-lookups/#comment-591</guid>
		<description>Linq has an extension method to do exactly this.

From a List  :
list.ToLookup ( k =&gt; k.ID );

From a List  :
list.ToLookup ( k =&gt; ( (IHasIdentifier) k).ID );</description>
		<content:encoded><![CDATA[<p>Linq has an extension method to do exactly this.</p>
<p>From a List  :<br />
list.ToLookup ( k =&gt; k.ID );</p>
<p>From a List  :<br />
list.ToLookup ( k =&gt; ( (IHasIdentifier) k).ID );</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alvin Ashcraft</title>
		<link>http://www.alvinashcraft.com/2008/09/22/extend-a-generic-list-to-provide-dictionary-like-lookups/comment-page-1/#comment-589</link>
		<dc:creator>Alvin Ashcraft</dc:creator>
		<pubDate>Tue, 23 Sep 2008 10:27:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.alvinashcraft.com/2008/09/22/extend-a-generic-list-to-provide-dictionary-like-lookups/#comment-589</guid>
		<description>Thanks for the feedback Jamie. I think you are correct about creating a FindByID delegate for use with the Find method.</description>
		<content:encoded><![CDATA[<p>Thanks for the feedback Jamie. I think you are correct about creating a FindByID delegate for use with the Find method.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jamie Ide</title>
		<link>http://www.alvinashcraft.com/2008/09/22/extend-a-generic-list-to-provide-dictionary-like-lookups/comment-page-1/#comment-588</link>
		<dc:creator>Jamie Ide</dc:creator>
		<pubDate>Tue, 23 Sep 2008 01:59:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.alvinashcraft.com/2008/09/22/extend-a-generic-list-to-provide-dictionary-like-lookups/#comment-588</guid>
		<description>I&#039;m sorry, but I think this is poor advice. You should be using the List.Find method to do this, which will give you O(n) lookup performance, the same as iterating. I don&#039;t recall trying this, but you may be able to create a generic FindById delegate to pass to the Find method. If you need faster lookup, you should copy the elements to a Dictionary which will give you 0(1) performance.</description>
		<content:encoded><![CDATA[<p>I&#8217;m sorry, but I think this is poor advice. You should be using the List.Find method to do this, which will give you O(n) lookup performance, the same as iterating. I don&#8217;t recall trying this, but you may be able to create a generic FindById delegate to pass to the Find method. If you need faster lookup, you should copy the elements to a Dictionary which will give you 0(1) performance.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
