How would you obtain the min and max of a two-dimensional array using LINQ? And to be clear, I mean the min/max of the all items in the array (not the min/max of a particular di
This seems to work:
IEnumerable allValues = myArray.Cast(); int min = allValues.Min(); int max = allValues.Max();