Example #1
0
 public static TypeSpec GetEnumUnderlyingType(ModuleContainer module, TypeSpec nullableEnum)
 {
     return(MakeType(module, EnumSpec.GetUnderlyingType(GetUnderlyingType(nullableEnum))));
 }
Example #2
0
 public static TypeSpec GetEnumUnderlyingType(ModuleContainer module, TypeSpec nullableEnum)
 {
     return(module.PredefinedTypes.Nullable.TypeSpec.MakeGenericType(module,
                                                                     new[] { EnumSpec.GetUnderlyingType(GetUnderlyingType(nullableEnum)) }));
 }