BloombergFLP.CollectdWin.DataSetCollection.GetDouble C# (CSharp) Method

GetDouble() private static method

private static GetDouble ( string dstr, double &val ) : Status
dstr string
val double
return Status
        private static Status GetDouble(string dstr, out double val)
        {
            if (dstr == "u" || dstr == "U")
            {
                val = Double.NaN;
                return (Status.Success);
            }
            try
            {
                val = Double.Parse(dstr);
            }
            catch (Exception)
            {
                val = Double.NaN;
                return (Status.Failure);
            }
            return (Status.Success);
        }