In this example I’ll be demonstrating a few ways to use the GroupBy and ToLookup LINQ keywords in some queries. I’ve divided this up between three methods. One method showing a basic GroupBy example. The second method showing examples on some in-memory data. And the third example on some database data.