1 write to Method
System.ComponentModel.Annotations (1)
System\ComponentModel\DataAnnotations\CustomValidationAttribute.cs (1)
91Method = method;
15 references to Method
System.ComponentModel.Annotations (15)
System\ComponentModel\DataAnnotations\CustomValidationAttribute.cs (15)
28/// identified by <see cref="Method" /> on a type identified by <see cref="ValidatorType" /> 33/// The named <see cref="Method" /> must be public, static, return <see cref="ValidationResult" /> and take at 38/// The <see cref="Method" /> may also declare an additional parameter of type <see cref="ValidationContext" />. 84/// <see cref="Method" />. 100/// Gets the type that contains the validation method identified by <see cref="Method" />. 108public override object TypeId => _typeId ??= new Tuple<string, Type>(Method, ValidatorType); 135/// <returns>Whatever the <see cref="Method" /> in <see cref="ValidatorType" /> returns.</returns> 154Method)); 233/// Internal helper to determine whether <see cref="Method" /> is legal for use. 238if (string.IsNullOrEmpty(Method)) 245.SingleOrDefault(m => string.Equals(m.Name, Method, StringComparison.Ordinal)); 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);