title: How to get a dimension (slice) from a multidimensional array
body: <p>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:</p>
  
  <pre><code>double[,] d = new double[,] { { 1, 2, 3, 4, 5 }, { 5, 4, 3, 2, 1 } };
  </code></pre>
  
  <p>If it was a jagged array, I would simply call <code>d[0]</code> and that would give me an array of <code>{1, 2, 3, 4, 5}</code>, is there a way I can achieve the same with a 2D array?</p>