public bool IsValid(object value, EnumValidation validation) { return(validation == EnumValidation.Default ? _customEnumValidator?.IsValid(value) ?? _cache.IsValidSimple(ToInt(value)) : _cache.IsValid(ToInt(value), validation)); }