title: How can I return an array of lists with a C# function?
body: <p>I have the code:</p>
  <pre><code>List&lt;int&gt;[] DATASET(int[] amounts; int needs; int amount){
      List&lt;int&gt;[] a = new List&lt;int&gt;[3];
      for (int i = 0; i &lt; 3; i++)
      {
          a[i] = new List&lt;int&gt;();
      }
      return a;
  }
  </code></pre>
  <p>It's supposed to return an array containing lists in it.
  It gives these errors:</p>
  <pre><code>) expected
  
  ; expected
  
  } expected
  </code></pre>
  <p>all of that in the first line of the code above, and I can't understand why?</p>