Поделиться через


EnumValue<T> Implicit Conversion (EnumValue<T> to T)

Implicit converter to enum.

Namespace:  DocumentFormat.OpenXml
Assembly:  DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)

Syntax

'Декларация
Public Shared Widening Operator CType ( _
    xmlAttribute As EnumValue(Of T) _
) As T
'Применение
Dim input As EnumValue(Of T)
Dim output As T

output = CType(input, T)
public static implicit operator T (
    EnumValue<T> xmlAttribute
)

Parameters

Return Value

Type: T
The internal enum value.

Exceptions

Exception Condition
InvalidOperationException

Thrown when "xmlAttribute" is null.

See Also

Reference

EnumValue<T> Class

EnumValue<T> Members

Implicit Overload

DocumentFormat.OpenXml Namespace