title: convert string[] to doube[,] in C#
body: <p>i have text file consist of data like:  </p>
  
  <pre><code>1,2  
  2,3  
  3,4  
  4,5  
  </code></pre>
  
  <p>Now I want to save the data into an array. So i do split:</p>
  
  <pre><code>using (streamreader sr = new streamreader("file.txt")) {
      string[] data = sr.ReadLine().Split(',');
  }
  </code></pre>
  
  <p>however my data save in string[] while I have a <code>GlobalDataClass</code> array declared as <code>double[,]</code>. Something like this:  </p>
  
  <pre><code>static class GlobalDataClass  
  {
     public static double[,] Array = new double[4, 2];
  }  
  </code></pre>
  
  <p>I need to assign the data to the GlobalDataClass:  </p>
  
  <pre><code>GlobalDataClass.Array = data;
  </code></pre>
  
  <p>So my question is how to convert the <code>string[]</code> to <code>double[,]</code>?</p>