How to use LINQ GroupBy method: Two more use cases

from blog Just Some Code, | ↗ original
Last time, I showed five of the most common LINQ methods with pictures. Let’s take a deeper look at one of them: GroupBy. The GroupBy method groups the elements of a collection based on a grouping key. This method returns a collection of “groups” or “buckets” organized by that key. Let’s continue to work with our catalog of movies and group our...