Posts
1150
Comments
891
Trackbacks
1
System.Linq.Lookup rocks

Well, I think it’s pretty cool, anyway.

Lookup allows you to have a collection of key-value pairs, but what makes it special is that you can have duplicate keys, which your normal Dictionary or SortedList don’t allow.  This allows you to do all sorts of grouping and what not which is very useful.

The only downside is that you can’t new one up, you have to do something like myList.ToLookup(blah, blah, blah) to get one.

Check it out.

posted on Friday, August 06, 2010 3:18 PM Print
Comments
No comments posted yet.

Post Comment

Title *
Name *
Email
Url
Comment *  
Please add 8 and 6 and type the answer here: