title: Creating a list within a list C#
body: <p>If I have 2+ lists of int numbers is there a way I can store those lists inside another list to pass it to another class or method? I want to be able to access each list individually, but I want to be able to pass them all together in one batch. What would be the syntax this and also what would be the proper method of accessing each list within the master list. Example, I have these individual lists:</p>
  
  <pre><code>List&lt;int&gt; Nums1= new List&lt;int&gt;(new int[] { 6, 76, 5, 5, 6 });
  List&lt;int&gt; Nums2= new List&lt;int&gt;(new int[] { 6, 4, 7, 5, 9 });
  List&lt;int&gt; Nums3= new List&lt;int&gt;(new int[] { 22, 11, 5, 4, 6 });
  </code></pre>
  
  <p>I want to then store these in another list to pass to a method such as:</p>
  
  <pre><code>static public List&lt;int&gt; DoSomething (List&lt;int&gt; Allnums)
  {
  
  //My calculations
  
  }
  </code></pre>
  
  <p>Then I want to be able to store them back into a master list and return them to my main. </p>