public EnumInfo([NotNull] Type enumType) { EnumType = enumType; _cache = new EnumCache <TInt, TIntProvider>(EnumType, this); _customEnumValidator = GetCustomEnumValidator(EnumType); }