IType GetEnumUnderlyingType(IType enumType) { ITypeDefinition def = enumType.GetDefinition(); return def != null ? def.EnumUnderlyingType : SpecialType.UnknownType; }