int maxValue = anArray.Max(); int maxIndex = anArray.ToList().IndexOf(maxValue);
Director/CTO at TensorStack Ltd.