Search⌘ K

Sum, Min, and Max Methods

Explore how to apply Sum Min and Max methods in LINQ to work with numeric collections. Learn to calculate total sum shortest and longest durations and understand the use of delegates in these methods.

So far, we’ve worked with collections of any type. We’ve used a collection of movies, or non-numerals, in our examples. Let’s learn three methods to work with collections of numbers.

How to find the minimum and maximum of a

...