System\ComponentModel\DataAnnotations\CustomValidationAttribute.cs (15)
88: base(() => SR.CustomValidationAttribute_ValidationError)
150return new ValidationResult(SR.Format(SR.CustomValidationAttribute_Type_Conversion_Failed,
221return SR.CustomValidationAttribute_ValidatorType_Required;
226return SR.Format(SR.CustomValidationAttribute_Type_Must_Be_Public, ValidatorType.Name);
240return SR.CustomValidationAttribute_Method_Required;
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);
System\ComponentModel\DataAnnotations\RangeAttribute.cs (11)
113throw new InvalidOperationException(SR.Format(SR.RangeAttribute_MinGreaterThanMax, maximum, minimum));
117throw new InvalidOperationException(SR.RangeAttribute_CannotUseExclusiveBoundsWhenTheyAreEqual);
200throw new InvalidOperationException(SR.RangeAttribute_Must_Set_Min_And_Max);
222throw new InvalidOperationException(SR.RangeAttribute_Must_Set_Operand_Type);
227throw new InvalidOperationException(SR.Format(SR.RangeAttribute_ArbitraryTypeNotIComparable,
266(false, false) => SR.RangeAttribute_ValidationError,
267(true, false) => SR.RangeAttribute_ValidationError_MinExclusive,
268(false, true) => SR.RangeAttribute_ValidationError_MaxExclusive,
269(true, true) => SR.RangeAttribute_ValidationError_MinExclusive_MaxExclusive,