SqlMoney.Explicit Operator

Definition

Converts to and from a SqlMoney.

Overloads

Explicit(SqlString to SqlMoney)

This operator converts the SqlString parameter to SqlMoney.

Explicit(SqlSingle to SqlMoney)

This operator converts the supplied SqlSingle parameter to SqlMoney.

Explicit(SqlMoney to Decimal)

Converts the specified SqlMoney structure to Decimal.

Explicit(Double to SqlMoney)

This implicit operator converts the supplied SqlDouble parameter to SqlMoney.

Explicit(SqlDecimal to SqlMoney)

This operator converts the supplied SqlDecimal parameter to SqlMoney.

Explicit(SqlBoolean to SqlMoney)

This implicit operator converts the supplied SqlBoolean parameter to SqlMoney.

Explicit(SqlDouble to SqlMoney)

This operator converts the supplied SqlDouble parameter to SqlMoney.

Explicit(SqlString to SqlMoney)

Source:
SQLMoney.cs
Source:
SQLMoney.cs
Source:
SQLMoney.cs

This operator converts the SqlString parameter to SqlMoney.

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

Parameters

x
SqlString

The SqlString object to be converted.

Returns

A new SqlMoney structure whose Value property equals the value represented by the SqlString parameter.

Remarks

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

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

Source:
SQLMoney.cs
Source:
SQLMoney.cs
Source:
SQLMoney.cs

This operator converts the supplied SqlSingle parameter to SqlMoney.

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

Parameters

x
SqlSingle

The SqlSingle structure to be converted.

Returns

A new SqlMoney structure whose Value property equals the Value of the SqlSingle parameter.

Remarks

The equivalent method for this operator is SqlSingle.ToSqlMoney()

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(SqlMoney to Decimal)

Source:
SQLMoney.cs
Source:
SQLMoney.cs
Source:
SQLMoney.cs

Converts the specified SqlMoney structure to Decimal.

C#
public static explicit operator decimal(System.Data.SqlTypes.SqlMoney x);

Parameters

x
SqlMoney

A SqlMoney structure.

Returns

A new Decimal structure whose value equals the Value of the SqlMoney parameter.

Remarks

The equivalent method for this operator is SqlMoney.ToDecimal()

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(Double to SqlMoney)

Source:
SQLMoney.cs
Source:
SQLMoney.cs
Source:
SQLMoney.cs

This implicit operator converts the supplied SqlDouble parameter to SqlMoney.

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

Parameters

x
Double

The SqlDouble structure to be converted.

Returns

A new SqlMoney structure whose Value property equals the ByteValue property of the SqlDouble parameter.

Remarks

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

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 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(SqlDecimal to SqlMoney)

Source:
SQLMoney.cs
Source:
SQLMoney.cs
Source:
SQLMoney.cs

This operator converts the supplied SqlDecimal parameter to SqlMoney.

C#
public static explicit operator System.Data.SqlTypes.SqlMoney(System.Data.SqlTypes.SqlDecimal x);

Parameters

x
SqlDecimal

The SqlDecimal structure to be converted.

Returns

A new SqlMoney structure whose Value property equals the Value of the SqlDecimal parameter.

Remarks

The equivalent method for this operator is SqlDecimal.ToSqlMoney()

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(SqlBoolean to SqlMoney)

Source:
SQLMoney.cs
Source:
SQLMoney.cs
Source:
SQLMoney.cs

This implicit operator converts the supplied SqlBoolean parameter to SqlMoney.

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

Parameters

x
SqlBoolean

The SqlBoolean structure to be converted.

Returns

A new SqlMoney structure whose Value property equals the ByteValue property of the SqlBoolean parameter.

Remarks

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

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

Source:
SQLMoney.cs
Source:
SQLMoney.cs
Source:
SQLMoney.cs

This operator converts the supplied SqlDouble parameter to SqlMoney.

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

Parameters

x
SqlDouble

The SqlDouble structure to be converted.

Returns

A new SqlMoney structure whose Value property equals the Value of the SqlDouble parameter.

Remarks

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

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