DEV Community

Cover image for LINQ GroupBy in Depth

LINQ GroupBy in Depth

Matt Eland on January 22, 2020

Let’s talk about how LINQ’s GroupBy method makes grouping data in C# easy. We’ll start basic and then go over every available overload of the Group...
Collapse
 
victorioberra profile image
Victorio Berra

I never knew about the overloads. I usually just projected after with Select. Thanks!

Collapse
 
integerman profile image
Matt Eland

I didn't either! I wrote this article at someone's request and learned a lot. The overloaded way is the difference maker for me.

Collapse
 
mattiascibien profile image
Mattias Cibien

Great exaplaination. I always find myself looking on Google for the correct way to use GroupBy. Guess that maybe this time I will remember it.

Collapse
 
integerman profile image
Matt Eland

I can guarantee you that I will look at this article myself as a reference for GroupBy at some point in time.