List<int> Numbers =new List<int>(); //represents minimum value in the list int MinValue = Numbers.OrderBy(p => p).FirstOrDefault(); //represents maximum value in the list int MaxValue = Numbers.OrderByDesending(p => p).FirstOrDefault();
var myList = new List<int>(); var min = myList.Min(); var max = myList.Max();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)