SqlSingle.Explicit Operator

Definition

Converts to and from a SqlSingle.

Overloads

Explicit(SqlBoolean to SqlSingle)

This implicit operator converts the supplied SqlBoolean to SqlSingle.

Explicit(SqlDouble to SqlSingle)

Converts the supplied SqlDouble parameter to SqlSingle.

Explicit(SqlSingle to Single)

Converts the specified SqlSingle structure to float.

Explicit(SqlString to SqlSingle)

Converts the supplied SqlString parameter to SqlSingle.

Explicit(SqlBoolean to SqlSingle)

Source:
SQLSingle.cs
Source:
SQLSingle.cs
Source:
SQLSingle.cs

This implicit operator converts the supplied SqlBoolean to SqlSingle.

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

Parameters

x
SqlBoolean

The SqlBoolean structure to be converted.

Returns

A new SqlSingle structure whose Value is equal to the ByteValue of the SqlBoolean parameter.

Remarks

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

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 SqlSingle)

Source:
SQLSingle.cs
Source:
SQLSingle.cs
Source:
SQLSingle.cs

Converts the supplied SqlDouble parameter to SqlSingle.

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

Parameters

x
SqlDouble

The SqlDouble parameter to be converted.

Returns

A new SqlSingle structure whose Value is equal to the Value of the SqlDouble parameter.

Remarks

The equivalent method for this operator is SqlDouble.ToSqlSingle()

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(SqlSingle to Single)

Source:
SQLSingle.cs
Source:
SQLSingle.cs
Source:
SQLSingle.cs

Converts the specified SqlSingle structure to float.

C#
public static explicit operator float(System.Data.SqlTypes.SqlSingle x);

Parameters

x
SqlSingle

The SqlSingle value to be converted to float.

Returns

A float that contains the value of the SqlSingle structure.

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 SqlSingle)

Source:
SQLSingle.cs
Source:
SQLSingle.cs
Source:
SQLSingle.cs

Converts the supplied SqlString parameter to SqlSingle.

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

Parameters

x
SqlString

The SqlString object to be converted.

Returns

A new SqlSingle structure whose Value is equal to the value represented by the SqlString parameter.

Remarks

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

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