Answers for "c# get max value from list"

C#
2

list.max c#

var list = new List<int> { 1, 2, 3, 4, 5, 6, 7, 16, 17 };  
Console.WriteLine("MAX=>" + list.Max(z => z));  
Console.WriteLine("MIN=>" + list.Min(z => z));
Posted by: Guest on July-30-2021
1

how to find the max number in list c#

int max = MyList.Max();
Posted by: Guest on October-01-2021

C# Answers by Framework

Browse Popular Code Answers by Language