Returns the minimum value in a sequence.
Syntax
source.Min(selector?)Example
Enter values below to update the example in real time.
var→numbers→new→List→Console→WriteLine→var numbers = new List<int> { 3, 1, 4, 1, 5 };
Console.WriteLine(numbers.Min()); // 1