title: C# rows of multi-dimensional arrays
body: <p>In the C# programming language, how do I pass a row of a multi-dimensional array? For example, suppose I have the following:</p>
  
  <pre><code>int[,] foo;
  foo = new int[6,4];
  int[] least;
  least = new int[6];
  
  for(int i = 0; i &lt; 6; i++)
  {
      least[i] = FindLeast(ref foo[i]);     //How do I pass the ith row of foo???
  }
  </code></pre>
  
  <p>Also, could anyone explain to me the benefit of having rectangular and jagged arrays in C#? Does this occur in other popular programming languages? (Java?)
  Thanks for all the help! </p>