SqlDouble.Explicit Operator

Definition

Converts to and from a SqlDouble.

Overloads

Explicit(SqlBoolean to SqlDouble)

Converts the supplied SqlBoolean parameter to SqlDouble.

Explicit(SqlDouble to Double)

Converts the supplied SqlDouble structure to double.

Explicit(SqlString to SqlDouble)

Converts the supplied SqlString parameter to SqlDouble.

Explicit(SqlBoolean to SqlDouble)

Converts the supplied SqlBoolean parameter to SqlDouble.

public:
 static explicit operator System::Data::SqlTypes::SqlDouble(System::Data::SqlTypes::SqlBoolean x);
public static explicit operator System.Data.SqlTypes.SqlDouble (System.Data.SqlTypes.SqlBoolean x);
static member op_Explicit : System.Data.SqlTypes.SqlBoolean -> System.Data.SqlTypes.SqlDouble
Public Shared Narrowing Operator CType (x As SqlBoolean) As SqlDouble

Parameters

x
SqlBoolean

The SqlBoolean to be converted.

Returns

A new SqlDouble structure whose Value is either 0 or 1, depending on the ByteValue property of the SqlBoolean parameter. If the SqlBoolean is Null, the SqlDouble structure will be Null.

Remarks

The equivalent method for this operator is SqlBoolean.ToSqlDouble()

See also

Explicit(SqlDouble to Double)

Converts the supplied SqlDouble structure to double.

public:
 static explicit operator double(System::Data::SqlTypes::SqlDouble x);
public static explicit operator double (System.Data.SqlTypes.SqlDouble x);
static member op_Explicit : System.Data.SqlTypes.SqlDouble -> double
Public Shared Narrowing Operator CType (x As SqlDouble) As Double

Parameters

x
SqlDouble

A SqlDouble structure.

Returns

A double equivalent to the specified SqlDouble structure's value.

See also

Explicit(SqlString to SqlDouble)

Converts the supplied SqlString parameter to SqlDouble.

public:
 static explicit operator System::Data::SqlTypes::SqlDouble(System::Data::SqlTypes::SqlString x);
public static explicit operator System.Data.SqlTypes.SqlDouble (System.Data.SqlTypes.SqlString x);
static member op_Explicit : System.Data.SqlTypes.SqlString -> System.Data.SqlTypes.SqlDouble
Public Shared Narrowing Operator CType (x As SqlString) As SqlDouble

Parameters

x
SqlString

A SqlString object.

Returns

A new SqlDouble whose Value is equal to the value of the number represented by the SqlString. If the SqlString is Null, the SqlDouble structure will be Null.

Remarks

The equivalent method for this operator is SqlString.ToSqlDouble()

See also

Applies to