Share via


DecimalValue.Implicit Operator

Definition

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.DecimalValue
Public Shared Widening Operator CType (value As Decimal) As DecimalValue

Parameters

value
Decimal

The Decimal value.

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 -> decimal
static member op_Implicit : DocumentFormat.OpenXml.DecimalValue -> decimal
Public Shared Widening Operator CType (xmlAttribute As DecimalValue) As Decimal
Public Shared Widening Operator CType (value As DecimalValue) As Decimal

Parameters

xmlAttributevalue
DecimalValue

Returns

The converted Decimal value.

Exceptions

Thrown when value is null.

Applies to