System.Data.SqlTypes.SqlDouble.Parse C# (CSharp) Method

Parse() public static method

public static Parse ( string s ) : SqlDouble
s string
return SqlDouble
        public static SqlDouble Parse(string s)
        {
            if (s == SQLResource.s_nullString)
                return SqlDouble.Null;
            else
                return new SqlDouble(double.Parse(s, CultureInfo.InvariantCulture));
        }

Usage Example

Esempio n. 1
0
 /**
  * Converts this SqlString structure to SqlDouble.
  * @return A SqlDouble structure whose Value equals the Value of this SqlString structure.
  */
 public SqlDouble ToSqlDouble()
 {
     return(SqlDouble.Parse(_value));
 }