EnumDescriptor.GetEnumType(Type) Method

Returns the underlying type of a specified enumeration.

Namespace: DevExpress.ExpressApp.Utils

Assembly: DevExpress.ExpressApp.v18.2.dll

Declaration

public static Type GetEnumType(
    Type type
)
Public Shared Function GetEnumType(
    type As Type
) As Type

Parameters

Type Name Description
Type type

A Type object representing either an enumeration type or a nullable enumeration type.

Returns

Type Description
Type

A Type object representing the underlying enumeration type.

If a plain enumeration type is passed as the type parameter, the GetEnumType method returns this type. If a nullable enumeration type is passed as the type parameter, the GetEnumType method returns the type of the underlying plain enumeration.

See Also