Anyone care to guess what currentIndex is at the end of execution?
int[] ints = new int[] { -1, 12, 26, 41, 52, -1, -1 };
int minInt = ints.Min();
It's 110. Does anyone know why?
Wrapped it a main function below
using System;
using System.Linq;
class Sample {
public static void Main()
{
int[] ints = new int[] { -1, 12, 26, 41, 52, -1, -1 };
int minInt = ints.Min();
Console.WriteLine(minInt);
}
}
EDIT: I changed the variable name to minInt from currentIndex. It was a copy and paste from an function I'm debugging, which made sense in that context but not so much here.