public static void RegisterAlternate(Type type, AlternateEnumRegister del) { if (!type.IsEnum) { throw new Exception($"The given type isn't an enum ({type.FullName} isn't an Enum)"); } BANNED_ENUMS.Add(type, del); }
internal static void RegisterAlternate(Type type, AlternateEnumRegister del) { BANNED_ENUMS.Add(type, del); }
public static void RegisterAlternate <TEnum>(AlternateEnumRegister del) where TEnum : Enum => RegisterAlternate(typeof(TEnum), del);
public static void RegisterAlternate <T>(AlternateEnumRegister del) => RegisterAlternate(typeof(T), del);