Bite-Size .NET 6 - MaxBy() and MinBy() in LINQ

added by DotNetKicks
11/1/2021 5:00:40 PM

260 Views

A cool new feature in .NET is the ability to get max and min values from a set of complex objects, using a common property in those objects. Let's see how to do that in this post! LINQ in .NET 5 and earlier contained a group of functions that allows us to get the maximum or minimum in a set of values.


0 comments