1 write to ValidatorType
System.ComponentModel.Annotations (1)
System\ComponentModel\DataAnnotations\CustomValidationAttribute.cs (1)
90ValidatorType = 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. 108public 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> 153ValidatorType, 214/// Internal helper to determine whether <see cref="ValidatorType" /> is legal for use. 219if (ValidatorType == null) 224if (!ValidatorType.IsVisible) 226return SR.Format(SR.CustomValidationAttribute_Type_Must_Be_Public, ValidatorType.Name); 244var methodInfo = ValidatorType.GetMethods(BindingFlags.Public | BindingFlags.Static) 248return SR.Format(SR.CustomValidationAttribute_Method_Not_Found, Method, ValidatorType.Name); 254return SR.Format(SR.CustomValidationAttribute_Method_Must_Return_ValidationResult, Method, ValidatorType.Name); 262return SR.Format(SR.CustomValidationAttribute_Method_Signature, Method, ValidatorType.Name); 274return SR.Format(SR.CustomValidationAttribute_Method_Signature, Method, ValidatorType.Name);