title: How to split a string into doubles and add them to array C#
body: <p>I have a string like</p>
  
  <pre><code>"1.898, -1.456, 233.556, 34546.8"
  </code></pre>
  
  <p>How would I make an array of doubles in C#
  Do I have to use regex or split function?</p>
  
  <p>I was trying something like:</p>
  
  <pre><code>string[] aux = ORIGINALtext.Split(',');
  foreach (string val in aux)
  {
     double value = double.Parse(val);
     Console.WriteLine(value);
  
  }
  </code></pre>