How do you create a nested LINQ Grouping / Lookups for a Collection of Objects
Posted
by Jeff Windsor
on Stack Overflow
See other posts from Stack Overflow
or by Jeff Windsor
Published on 2010-05-20T15:50:03Z
Indexed on
2010/05/20
16:00 UTC
Read the original article
Hit count: 157
Given a list of objects with a date and decimal, I would like to index these objects by the year, month, dayofweek and hour of the date. In .NET 2.0, I would have created this graph using a set of nested dictionaries and a list as the leaf node. I am interested in how this could be done with LINQ.
© Stack Overflow or respective owner