max of array C#

C#
int maxValue = anArray.Max();
int maxIndex = anArray.ToList().IndexOf(maxValue);
Source

Also in C#: