IKVM.Reflection.Type.GetEnumUnderlyingType C# (CSharp) Method

GetEnumUnderlyingType() public method

public GetEnumUnderlyingType ( ) : Type
return Type
        public virtual Type GetEnumUnderlyingType()
        {
            if (!this.IsEnum)
            {
                throw new ArgumentException();
            }
            CheckBaked();
            return GetEnumUnderlyingTypeImpl();
        }

Usage Example

Example #1
0
        public static Type GetEnumEnderlyingType(Type type)
        {
#if FEAT_IKVM
            return(type.GetEnumUnderlyingType());
#else
            return(Enum.GetUnderlyingType(type));
#endif
        }
All Usage Examples Of IKVM.Reflection.Type::GetEnumUnderlyingType