I don't understand the purpose of Enum.GetUnderlyingType(Type enumType)
The MSDN documentation does not help:
Returns the base type of the specified enumeration.
This seems to convert the specified enum type to ... something else. o_o
What is the base type? This is similar to some internal implementation details. Why is this public? Why should I do this? Viewing the actual implementation also does not help, the method just performs some checks and then calls
[MethodImplAttribute(MethodImplOptions.InternalCall)] private static extern Type InternalGetUnderlyingType(Type enumType);
... to which I cannot find the source.
Can anyone shed some light on this?
source share