IEnumerable<int> maxes = dimensions.Select(dim => Math.Max(dim[0], dim[1]));
or
IEnumerable<int> maxes = dimensions.Select(dim => dim.Take(2).Max());
2
solved Searching a multi dimensional array for a maximum [closed]
IEnumerable<int> maxes = dimensions.Select(dim => Math.Max(dim[0], dim[1]));
or
IEnumerable<int> maxes = dimensions.Select(dim => dim.Take(2).Max());
2
solved Searching a multi dimensional array for a maximum [closed]