Click here to Skip to main content
15,885,182 members
Articles / Programming Languages / C# 3.5

Using Linq to create a Dictionary of sub-Lists by grouping from a collection.

Rate me:
Please Sign up or sign in to vote.
5.00/5 (5 votes)
27 May 2014CPOL2 min read 62.9K   8  
This is really easy - but it's hard to work out for the first time. For example, get a list of files, and group them by the date which is in the 2nd to 10th characters of the name, ignoring extensions. Easy!

Alternatives

Members may post updates or alternatives to this current article in order to show different approaches or add new features.

No alternatives have been posted.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
CEO
Wales Wales
Born at an early age, he grew older. At the same time, his hair grew longer, and was tied up behind his head.
Has problems spelling the word "the".
Invented the portable cat-flap.
Currently, has not died yet. Or has he?

Comments and Discussions