SqlMoney.Implicit 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 a SqlMoney structure.

Overloads

Implicit(Int64 to SqlMoney)

This implicit operator converts the supplied Int64 parameter to SqlMoney.

Implicit(Decimal to SqlMoney)

Converts the Decimal parameter to SqlMoney.

Implicit(SqlInt64 to SqlMoney)

This implicit operator converts the supplied SqlInt64 parameter to SqlMoney.

Implicit(SqlInt16 to SqlMoney)

This implicit operator converts the supplied SqlInt16 parameter to SqlMoney.

Implicit(SqlByte to SqlMoney)

This implicit operator converts the supplied SqlByte parameter to SqlMoney.

Implicit(SqlInt32 to SqlMoney)

This implicit operator converts the supplied SqlInt32 parameter to SqlMoney.

Implicit(Int64 to SqlMoney)

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

This implicit operator converts the supplied Int64 parameter to SqlMoney.

C#
public static implicit operator System.Data.SqlTypes.SqlMoney(long x);

Parameters

x
Int64

The Int64 structure to be converted.

Returns

A new SqlMoney structure whose Value property is equal to the value of the Int64 parameter.

Remarks

The equivalent method for this operator is SqlByte.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

Implicit(Decimal to SqlMoney)

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

Converts the Decimal parameter to SqlMoney.

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

Parameters

x
Decimal

The Decimal value to be converted.

Returns

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

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

Implicit(SqlInt64 to SqlMoney)

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

This implicit operator converts the supplied SqlInt64 parameter to SqlMoney.

C#
public static implicit operator System.Data.SqlTypes.SqlMoney(System.Data.SqlTypes.SqlInt64 x);

Parameters

x
SqlInt64

The SqlInt64 structure to be converted.

Returns

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

Remarks

The equivalent method for this operator is SqlInt64.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

Implicit(SqlInt16 to SqlMoney)

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

This implicit operator converts the supplied SqlInt16 parameter to SqlMoney.

C#
public static implicit operator System.Data.SqlTypes.SqlMoney(System.Data.SqlTypes.SqlInt16 x);

Parameters

x
SqlInt16

The SqlInt16 structure to be converted.

Returns

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

Remarks

The equivalent method for this operator is SqlInt16.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

Implicit(SqlByte to SqlMoney)

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

This implicit operator converts the supplied SqlByte parameter to SqlMoney.

C#
public static implicit operator System.Data.SqlTypes.SqlMoney(System.Data.SqlTypes.SqlByte x);

Parameters

x
SqlByte

The SqlByte structure to be converted.

Returns

A new SqlMoney structure whose Value property is equal to the Value of the SqlByte parameter.

Remarks

The equivalent method for this operator is SqlByte.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

Implicit(SqlInt32 to SqlMoney)

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

This implicit operator converts the supplied SqlInt32 parameter to SqlMoney.

C#
public static implicit operator System.Data.SqlTypes.SqlMoney(System.Data.SqlTypes.SqlInt32 x);

Parameters

x
SqlInt32

The SqlInt32 structure to be converted.

Returns

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

Remarks

The equivalent method for this operator is SqlInt32.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