title: C# list<string, list<string>> how to?
body: <p>I've spent some time on the internet trying to find a solution, but my skills in C# are at a beginner level and I did not find any ways to do what i wanted to.</p>
  
  <p>So here is the situation :</p>
  
  <p>I have a web service that return an object to me, in this object there is a two dimensional table. What I'd like to do is running along this table and put these value inside a <code>List</code>. To illustrate that here is an example and what I already have : </p>
  
  <pre><code>// creation of a list like : List &lt;String, List&lt;String&gt;&gt; myList
  for (int i = 0; i &lt; outPut.errors.Length; i++)
  {
      string error = outPut.errors[i].data.label;
      //myList.add(error);
      if (outPut.errors[i].data.label != "" &amp;&amp; outPut.errors[i] != null)
      {
           for (int j = 0; j &lt; outPut.errors[i].data.corrections.Length; j++)
           {
                string corrections  = outPut.errors[j].data.corrections[0][j].ToString();
                //myList.add(corrections)
           }  
      }
  }
  </code></pre>
  
  <p>So in this example i create a two dimension List where the first argument is a String and the second is a List (just like a two dimensional table would have tab[x][y] where there is multiple Y for one X.</p>
  
  <p>Apparently in C# you have to know the exact size to create a two dimensional table, and we will never know what will be the size of this table.</p>
  
  <p>So is it possible to create a list such as i'd like to do it or should i do it another way?</p>