title: How to return a jagged array
body: <p>I have a function which use a 2D jagged array to save records from an SQL query.</p>
  
  <p>How do return the jagged array correctly?</p>
  
  <p>I tried something like:</p>
  
  <pre><code>public string[][] GetResult()
  {
      return result;
  }
  </code></pre>
  
  <p>And in my main programm:</p>
  
  <pre><code>string[][] test = new string[server1.GetResult().Length][];
  test = server1.GetResult();
  </code></pre>
  
  <p>Well, as expected, it didn't work.</p>
  
  <p>I don't know how to fix my problem.</p>