Share via


EnumValue<T>.Implicit Operator

Definition

Overloads

Implicit(EnumValue<T> to String)

Implicitly converts the specified value to a String value.

Implicit(T to EnumValue<T>)

Initializes a new EnumValue class by converting the supplied enum value.

Implicit(EnumValue<T> to T)

Implicitly converts the specified value to an enum.

Implicit(EnumValue<T> to String)

Implicitly converts the specified value to a String value.

public static implicit operator string (DocumentFormat.OpenXml.EnumValue<T> value);
public static implicit operator string? (DocumentFormat.OpenXml.EnumValue<T> value);
static member op_Implicit : DocumentFormat.OpenXml.EnumValue<'T (requires 'T : struct)> -> string
Public Shared Widening Operator CType (value As EnumValue(Of T)) As String

Parameters

value
EnumValue<T>

The value to convert.

Returns

The converted string.

Applies to

Implicit(T to EnumValue<T>)

Initializes a new EnumValue class by converting the supplied enum value.

public static implicit operator DocumentFormat.OpenXml.EnumValue<T> (T value);
static member op_Implicit : 'T -> DocumentFormat.OpenXml.EnumValue<'T (requires 'T : struct)>
Public Shared Widening Operator CType (value As T) As EnumValue(Of T)

Parameters

value
T

The value with type T

Returns

A new EnumValue instance corresponding to the value.

Applies to

Implicit(EnumValue<T> to T)

Implicitly converts the specified value to an enum.

public static implicit operator T (DocumentFormat.OpenXml.EnumValue<T> xmlAttribute);
public static implicit operator T (DocumentFormat.OpenXml.EnumValue<T> value);
static member op_Implicit : DocumentFormat.OpenXml.EnumValue<'T (requires 'T : struct)> -> 'T
static member op_Implicit : DocumentFormat.OpenXml.EnumValue<'T (requires 'T : struct)> -> 'T
Public Shared Widening Operator CType (xmlAttribute As EnumValue(Of T)) As T
Public Shared Widening Operator CType (value As EnumValue(Of T)) As T

Parameters

xmlAttributevalue
EnumValue<T>

Returns

T

The converted enum value.

Exceptions

Thrown when value is null.

Applies to