1 write to ValidatorType
System.ComponentModel.Annotations (1)
System\ComponentModel\DataAnnotations\CustomValidationAttribute.cs (1)
90
ValidatorType
= validatorType;
15 references to ValidatorType
System.ComponentModel.Annotations (15)
System\ComponentModel\DataAnnotations\CustomValidationAttribute.cs (15)
28
/// identified by <see cref="Method" /> on a type identified by <see cref="
ValidatorType
" />
30
/// The supplied <see cref="
ValidatorType
" /> cannot be null, and it must be a public type.
108
public override object TypeId => _typeId ??= new Tuple<string, Type>(Method,
ValidatorType
);
111
/// Gets the name of the method in <see cref="
ValidatorType
" /> to invoke to perform validation.
135
/// <returns>Whatever the <see cref="Method" /> in <see cref="
ValidatorType
" /> returns.</returns>
153
ValidatorType
,
214
/// Internal helper to determine whether <see cref="
ValidatorType
" /> is legal for use.
219
if (
ValidatorType
== null)
224
if (!
ValidatorType
.IsVisible)
226
return SR.Format(SR.CustomValidationAttribute_Type_Must_Be_Public,
ValidatorType
.Name);
244
var methodInfo =
ValidatorType
.GetMethods(BindingFlags.Public | BindingFlags.Static)
248
return SR.Format(SR.CustomValidationAttribute_Method_Not_Found, Method,
ValidatorType
.Name);
254
return SR.Format(SR.CustomValidationAttribute_Method_Must_Return_ValidationResult, Method,
ValidatorType
.Name);
262
return SR.Format(SR.CustomValidationAttribute_Method_Signature, Method,
ValidatorType
.Name);
274
return SR.Format(SR.CustomValidationAttribute_Method_Signature, Method,
ValidatorType
.Name);