Open sandboxFocus

Property UnderlyingType

UnderlyingType

Gets the underlying integral type of the enum, which is int unless the declaration names another one.

Declaration
INamedType UnderlyingType { get; }
Property Value
Type Description
INamedType
Remarks

This property has a single meaning. UnderlyingType returns the same type for an enum, but it returns other things for other kinds of type, so the caller has to know the kind of the type to know what it returned.

See Also