AGENT.Contrib.Util.Parse.TryParseDouble C# (CSharp) Метод

TryParseDouble() публичный статический Метод

Attempt to parse the provided string value.
public static TryParseDouble ( string s, double &i ) : bool
s string String value to be parsed
i double Variable to set successfully parsed value to
Результат bool
        public static bool TryParseDouble(string s, out double i)
        {
            i = 0;
            try
            {
                i = double.Parse(s);
                return true;
            }
            catch
            {
                return false;
            }
        }