SqlMoney Explicit Conversion (SqlMoney to Decimal)

 
equivalentCodeEntityM:System.Data.SqlTypes.SqlMoney.ToDecimal

Converts the specified SqlMoney structure to Decimal.

Namespace:   System.Data.SqlTypes
Assembly:  System.Data (in System.Data.dll)

public static explicit operator decimal (
	SqlMoney x
)

Parameters

x
Type: System.Data.SqlTypes.SqlMoney

A SqlMoney structure.

Return Value

Type: System.Decimal

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

.NET Framework
Available since 1.1
Return to top
Show: