I\'m trying to figure out how to get a single dimension from a multidimensional array (for the sake of argument, let\'s say it\'s 2D), I have a multidimensional array:
This should replicate the a[r] functionality of a jagged array:
T[] Slice(T[,] a, int r) => Enumerable.Range(0, a.GetUpperBound(1) + 1).Select(i => a[r, i]).ToArray();