Converting string to double in C#
<p>I have a string with double-type values ("value1#value2#value3#...).
I split it to string table. Then i want to convert an element from this table to double, and I get a n error. What is wrong? How can I get from this string (string a) values in double type?</p>

<p>Greetings!</p>

<pre><code>string a = "52.8725945#18.69872650000002#50.9028073#14.971600200000012#51.260062#15.5859949000000662452.23862099999999#19.372202799999250800000045#51.7808372#19.474096499999973#";
string[] tablicaLatLng = a.Split(new char[] { '#' });
for (int i = 0; i &lt; tablicaLatLng.Length; i++)
{
  Console.WriteLine(tablicaLatLng[i]); 
}
Console.WriteLine(tablicaLatLng[0]); // 52.8725945
Convert.ToDouble(tablicaLatLng[0]); // error
</code></pre>
