50 : base(() =>
System.
SR.CustomValidationAttribute_ValidationError)
67 object[] parameters = ((!
_isSingleArgumentMethod) ?
new object[2] { convertedValue, validationContext } :
new object[1] { convertedValue });
70 if (validationResult !=
null)
74 return validationResult;
89 return base.FormatErrorMessage(name);
112 if (
string.IsNullOrEmpty(
Method))
117 if (methodInfo ==
null)
151 convertedValue =
null;
163 convertedValue =
value;
override bool Equals([NotNullWhen(true)] object? obj)
bool _isSingleArgumentMethod
Tuple< string, Type > _typeId
CustomValidationAttribute([DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicMethods)] Type validatorType, string method)
string ValidateValidatorTypeParameter()
override bool RequiresValidationContext
readonly Lazy< string > _malformedErrorMessage
string CheckAttributeWellFormed()
string ValidateMethodParameter()
override? ValidationResult IsValid(object? value, ValidationContext validationContext)
bool TryConvertValue(object value, out object convertedValue)
override string FormatErrorMessage(string name)
void ThrowIfAttributeNotWellFormed()
static ? object ChangeType(object? value, TypeCode typeCode)
Exception? InnerException
static CultureInfo CurrentCulture
ParameterInfo[] GetParameters()
object? Invoke(object? obj, object?[]? parameters)
virtual Type ParameterType
static string CustomValidationAttribute_Method_Required
static string Format(string resourceFormat, object p1)
static string CustomValidationAttribute_Method_Must_Return_ValidationResult
static string CustomValidationAttribute_Type_Conversion_Failed
static string CustomValidationAttribute_Method_Not_Found
static string CustomValidationAttribute_ValidatorType_Required
static string CustomValidationAttribute_Method_Signature
static string CustomValidationAttribute_Type_Must_Be_Public
virtual bool IsInstanceOfType([NotNullWhen(true)] object? o)
virtual bool IsGenericType
MethodInfo[] GetMethods()
virtual Type GetGenericTypeDefinition()
DynamicallyAccessedMemberTypes