c# how to find the max number and the index of matrix code example Example: see max value in array c# using System.Linq; int maxValue = anArray.Max();