TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Rich
NA
84
61.3k
Nested GroupBy extension method
Mar 18 2012 9:19 PM
Can someone show me a a simple example of a nested GroupBy extension method. I am trying to group an object into a list. I figure it will look something like this:
List<stats> myStats = GetStatsList().GroupBy( d => d.date).GroupBy(t => t.team)
Select(s => new stats
{
Date =
Team =
}).AsEnumerable().ToList();
Thanks in advance.
Reply
Answers (
4
)
Ranking items in a list with linq
LINQ to Entities Small code to test data retrieval C# WinForms