AK.F1.Timing.Live.LiveData.ParseDouble C# (CSharp) Method

ParseDouble() public static method

Parses a System.Double from the specified string.
/// Thrown when is incorrectly formatted. ///
public static ParseDouble ( string s ) : double
s string The string to parse.
return double
        public static double ParseDouble(string s)
        {
            double value;

            if(Double.TryParse(s, NumberStyles.Float, CultureInfo.InvariantCulture, out value))
            {
                return value;
            }

            throw Guard.LiveData_UnableToParseDouble(s);
        }