array min and max c# code example
Example 1: see max value in array c#
using System.Linq;
int maxValue = anArray.Max();
Example 2: finding minimum in c#
int LowestHeight = Math.Min(newPerson.Height, Math.Min(newPerson1.Height, Math.Min(newPerson2.Height, newPerson3.Height)));