Skip to main content
.NET 8.0+

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

EnumDescriptor.GetEnumType(Type) Method

Returns the underlying type of a specified enumeration.

Namespace: DevExpress.ExpressApp.Utils

Assembly: DevExpress.ExpressApp.v24.2.dll

NuGet Package: DevExpress.ExpressApp

#Declaration

public static Type GetEnumType(
    Type type
)

#Parameters

Name Type 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.

#Remarks

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