title: c# Convert.ToDouble format exception error
body: <p>I'm trying to convert this string to double</p>
  
  <p><code>Convert.ToDouble("1.12");</code></p>
  
  <p>and this is the output</p>
  
  <blockquote>
    <p>System.FormatException was unhandled.</p>
  </blockquote>
  
  <p>Should I do something like this?</p>
  
  <pre><code>    public static double ConvertToDouble(string ParseVersion)
      {
          double NewestVersion;
          try
          {
              NewestVersion = Convert.ToDouble(ParseVersion);
          }
          catch
          {
              ParseVersion = ParseVersion.Replace('.', ',');
              NewestVersion = Convert.ToDouble(ParseVersion);
          }
  
          return NewestVersion;
      }
  
      ConvertToDouble("1.12");
  </code></pre>
  
  <p>Or is there an easier solution?</p>