Edit

Share via


SqlDouble.Explicit Operator

Definition

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

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)

Source:
SQLDouble.cs
Source:
SQLDouble.cs
Source:
SQLDouble.cs

Converts the supplied SqlBoolean parameter to SqlDouble.

C#
public static explicit operator System.Data.SqlTypes.SqlDouble(System.Data.SqlTypes.SqlBoolean x);

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

Applies to

.NET 10 and other versions
Product Versions
.NET Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1

Explicit(SqlDouble to Double)

Source:
SQLDouble.cs
Source:
SQLDouble.cs
Source:
SQLDouble.cs

Converts the supplied SqlDouble structure to double.

C#
public static explicit operator double(System.Data.SqlTypes.SqlDouble x);

Parameters

x
SqlDouble

A SqlDouble structure.

Returns

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

See also

Applies to

.NET 10 and other versions
Product Versions
.NET Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1

Explicit(SqlString to SqlDouble)

Source:
SQLDouble.cs
Source:
SQLDouble.cs
Source:
SQLDouble.cs

Converts the supplied SqlString parameter to SqlDouble.

C#
public static explicit operator System.Data.SqlTypes.SqlDouble(System.Data.SqlTypes.SqlString x);

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

.NET 10 and other versions
Product Versions
.NET Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1