Tag: LINQ

LINQ SelectMany in Depth

While GroupBy took a single collection and transformed it into multiple child collections, SelectMany flattens child collections into a single merged collection.

LINQ GroupBy in Depth

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 GroupBy method to explore advanced use cases.