EnumValue<T> Implicit Conversion (EnumValue<T> to T)
Implicit converter to enum.
Namespace: DocumentFormat.OpenXml
Assembly: DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)
Syntax
'Declaration
Public Shared Widening Operator CType ( _
xmlAttribute As EnumValue(Of T) _
) As T
'Usage
Dim input As EnumValue(Of T)
Dim output As T
output = CType(input, T)
public static implicit operator T (
EnumValue<T> xmlAttribute
)
Parameters
- xmlAttribute
Type: DocumentFormat.OpenXml.EnumValue<T>
The EnumValue to be converted.
Return Value
Type: T
The internal enum value.
Exceptions
Exception | Condition |
---|---|
InvalidOperationException | Thrown when "xmlAttribute" is null. |