How effective is using Last()
for arrays?
var array = new[] { ... };
var last = array.Last(); // or array[array.Length - 1]
In sources it only distinguish IList<T>
, so is that true what Last()
will enumerate a complete array to return last item? Funny stuff is msdn example without a single note.