Live Webinar: Prompt Engineering: Skill Everyone Must Learn Today
x
C# Corner
Tech
News
Videos
Forums
Jobs
Books
Events
More
Interviews
Live
Learn
Training
Career
Members
Blogs
Challenges
Certification
Contribute
Article
Blog
Video
Ebook
Interview Question
Collapse
Feed
Dashboard
Wallet
Learn
Achievements
Network
Refer
Rewards
SharpGPT
Premium
Contribute
Article
Blog
Video
Ebook
Interview Question
Register
Login
Use Multiple Column Group by in LINQ
WhatsApp
Mukesh Kumar
Oct 08
2015
2.3
k
0
0
var myvalue=
from c
in
children
group c by
new
{
c.School,
c.Friend,
c.FavoriteColor,
} into gcs
select
new
ConsolidatedChild()
{
School = gcs.Key.School,
Friend = gcs.Key.Friend,
FavoriteColor = gcs.Key.FavoriteColor,
Children = gcs.ToList(),
};
Linq
Use Multiple Column Group
Up Next
Use Multiple Column Group by in LINQ