title: List of Tuples to multi-dimensional array
body: <blockquote>
    <p><strong>Related, but not Duplicate (it's a completely different language, PHP not C#):</strong><br>
    <a href="https://stackoverflow.com/questions/7884337/how-to-create-multi-dimensional-array-from-a-list">How to create multi-dimensional array from a list?</a>  </p>
  </blockquote>
  
  <p>How would I go about converting a list of 'Tuple's to string[,]?</p>
  
  <p>This is part of a web crawler, but i'm messing with conversions of lists and arrays just out of curiosity. Here's the method.</p>
  
  <pre><code>private string[,] getimages(string url)
      {
          List&lt;Tuple&lt;string, string&gt;&gt; images = new List&lt;Tuple&lt;string, string&gt;&gt;();
          string raw = client.DownloadString(url);
          while (raw.Contains("&lt;a class=\"title \" href"))
          {
              raw = raw.Substring(raw.IndexOf("&lt;a class=\"title \" href"));
              String link = raw.Substring(24, raw.IndexOf("&gt;", 24) - 26);
  
              int startname = raw.IndexOf("&gt;", 24) + 1;
              int endname = raw.IndexOf("&lt;/a&gt;&amp;#32;");
              String name = raw.Substring(startname, endname - startname);
  
              images.Add(new Tuple&lt;string, string&gt;(name, link));
  
              raw = raw.Substring(endname);
          }
  
  
  
  }
  </code></pre>
  
  <p>I want to return 'images', but converted to a multidimensional array.</p>