SqlDecimal.Implicit Operator

Definition

Converts the supplied structure to SqlDecimal.

Overloads

Implicit(SqlMoney to SqlDecimal)

Converts the SqlMoney operand to SqlDecimal.

Implicit(Int64 to SqlDecimal)

Converts the supplied Int64 structure to SqlDecimal.

Implicit(Decimal to SqlDecimal)

Converts the Decimal value to SqlDecimal.

Implicit(SqlInt64 to SqlDecimal)

Converts the supplied SqlInt64 structure to SqlDecimal.

Implicit(SqlInt32 to SqlDecimal)

Converts the supplied SqlInt32 structure to SqlDecimal.

Implicit(SqlInt16 to SqlDecimal)

Converts the supplied SqlInt16 structure to SqlDecimal.

Implicit(SqlByte to SqlDecimal)

Converts the supplied SqlByte structure to SqlDecimal.

Implicit(SqlMoney to SqlDecimal)

Source:
SQLDecimal.cs
Source:
SQLDecimal.cs
Source:
SQLDecimal.cs

Converts the SqlMoney operand to SqlDecimal.

public static implicit operator System.Data.SqlTypes.SqlDecimal (System.Data.SqlTypes.SqlMoney x);

Parameters

x
SqlMoney

The SqlMoney structure to be converted.

Returns

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

Remarks

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

See also

Applies to

.NET 9 och andra versioner
Produkt Versioner
.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
.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(Int64 to SqlDecimal)

Source:
SQLDecimal.cs
Source:
SQLDecimal.cs
Source:
SQLDecimal.cs

Converts the supplied Int64 structure to SqlDecimal.

public static implicit operator System.Data.SqlTypes.SqlDecimal (long x);

Parameters

x
Int64

The Int64 structure to be converted.

Returns

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

Remarks

The equivalent method for this operator is SqlDecimal.Value

See also

Applies to

.NET 9 och andra versioner
Produkt Versioner
.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
.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 SqlDecimal)

Source:
SQLDecimal.cs
Source:
SQLDecimal.cs
Source:
SQLDecimal.cs

Converts the Decimal value to SqlDecimal.

public static implicit operator System.Data.SqlTypes.SqlDecimal (decimal x);

Parameters

x
Decimal

The Decimal value to be converted.

Returns

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

See also

Applies to

.NET 9 och andra versioner
Produkt Versioner
.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
.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 SqlDecimal)

Source:
SQLDecimal.cs
Source:
SQLDecimal.cs
Source:
SQLDecimal.cs

Converts the supplied SqlInt64 structure to SqlDecimal.

public static implicit operator System.Data.SqlTypes.SqlDecimal (System.Data.SqlTypes.SqlInt64 x);

Parameters

x
SqlInt64

The SqlInt64 structure to be converted.

Returns

A new SqlDecimal structure whose Value equals the Value of the SqlInt64 parameter.

Remarks

The equivalent method for this operator is SqlInt64.ToSqlDecimal()

See also

Applies to

.NET 9 och andra versioner
Produkt Versioner
.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
.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 SqlDecimal)

Source:
SQLDecimal.cs
Source:
SQLDecimal.cs
Source:
SQLDecimal.cs

Converts the supplied SqlInt32 structure to SqlDecimal.

public static implicit operator System.Data.SqlTypes.SqlDecimal (System.Data.SqlTypes.SqlInt32 x);

Parameters

x
SqlInt32

The SqlInt32 structure to be converted.

Returns

A new SqlDecimal structure whose Value property is equal to the Value property of the SqlInt32 parameter.

Remarks

The equivalent method for this operator is SqlInt32.ToSqlDecimal()

See also

Applies to

.NET 9 och andra versioner
Produkt Versioner
.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
.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 SqlDecimal)

Source:
SQLDecimal.cs
Source:
SQLDecimal.cs
Source:
SQLDecimal.cs

Converts the supplied SqlInt16 structure to SqlDecimal.

public static implicit operator System.Data.SqlTypes.SqlDecimal (System.Data.SqlTypes.SqlInt16 x);

Parameters

x
SqlInt16

The SqlInt16 structure to be converted.

Returns

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

Remarks

The equivalent method for this operator is SqlInt16.ToSqlDecimal()

See also

Applies to

.NET 9 och andra versioner
Produkt Versioner
.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
.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 SqlDecimal)

Source:
SQLDecimal.cs
Source:
SQLDecimal.cs
Source:
SQLDecimal.cs

Converts the supplied SqlByte structure to SqlDecimal.

public static implicit operator System.Data.SqlTypes.SqlDecimal (System.Data.SqlTypes.SqlByte x);

Parameters

x
SqlByte

The SqlByte structure to be converted.

Returns

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

Remarks

The equivalent method for this operator is SqlByte.ToSqlDecimal()

See also

Applies to

.NET 9 och andra versioner
Produkt Versioner
.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
.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