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

Parse() public static method

public static Parse ( string s ) : SqlInt64
s string
return SqlInt64
        public static SqlInt64 Parse(string s)
        {
            if (s == SQLResource.s_nullString)
                return SqlInt64.Null;
            else
                return new SqlInt64(long.Parse(s, null));
        }

Usage Example

Ejemplo n.º 1
0
 /**
  * Converts this SqlString structure to SqlInt64.
  * @return A SqlInt64 structure whose Value equals the Value of this SqlString structure.
  */
 public SqlInt64 ToSqlInt64()
 {
     return(SqlInt64.Parse(_value));
 }