How do you create a nested LINQ Grouping / Lookups for a Collection of Objects
- by Jeff Windsor
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.