DecimalValue.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.
Overloads
| Implicit(Decimal to DecimalValue) | Initializes a new instance of the DecimalValue class by implicitly converting the supplied Decimal value. | 
| Implicit(DecimalValue to Decimal) | Implicitly converts the specified value to a Decimal value. | 
Implicit(Decimal to DecimalValue)
Initializes a new instance of the DecimalValue class by implicitly converting the supplied Decimal value.
public static implicit operator DocumentFormat.OpenXml.DecimalValue(decimal value);static member op_Implicit : decimal -> DocumentFormat.OpenXml.DecimalValuePublic Shared Widening Operator CType (value As Decimal) As DecimalValueParameters
Returns
A new DecimalValue instance with the value.
Applies to
Implicit(DecimalValue to Decimal)
Implicitly converts the specified value to a Decimal value.
public static implicit operator decimal(DocumentFormat.OpenXml.DecimalValue xmlAttribute);public static implicit operator decimal(DocumentFormat.OpenXml.DecimalValue value);static member op_Implicit : DocumentFormat.OpenXml.DecimalValue -> decimalstatic member op_Implicit : DocumentFormat.OpenXml.DecimalValue -> decimalPublic Shared Widening Operator CType (xmlAttribute As DecimalValue) As DecimalPublic Shared Widening Operator CType (value As DecimalValue) As DecimalParameters
- xmlAttributevalue
- DecimalValue
Returns
The converted Decimal value.
Exceptions
Thrown when value is null.