6internal static class SR
34 internal static string CustomValidationAttribute_Method_Signature =>
GetResourceString(
"CustomValidationAttribute_Method_Signature",
"The CustomValidationAttribute method '{0}' in type '{1}' must match the expected signature: public static ValidationResult {0}(object value, ValidationContext context). The value can be strongly typed. The ValidationContext parameter is optional.");
56 internal static string LocalizableString_LocalizationFailed =>
GetResourceString(
"LocalizableString_LocalizationFailed",
"Cannot retrieve property '{0}' because localization failed. Type '{1}' is not public or does not contain a public static string property with the name '{2}'.");
58 internal static string MaxLengthAttribute_InvalidMaxLength =>
GetResourceString(
"MaxLengthAttribute_InvalidMaxLength",
"MaxLengthAttribute must have a Length value that is greater than zero. Use MaxLength() without parameters to indicate that the string or array can have the maximum allowable length.");
106 internal static string ValidationAttribute_IsValid_NotImplemented =>
GetResourceString(
"ValidationAttribute_IsValid_NotImplemented",
"IsValid(object value) has not been implemented by this class. The preferred entry point is GetValidationResult() and classes should override IsValid(object value, ValidationContext context).");
131 string result =
null;
145 if (!(resourceKey == resourceString) && resourceString !=
null)
147 return resourceString;
149 return defaultString;
152 internal static string Format(
string resourceFormat,
object p1)
156 return string.Join(
", ", resourceFormat, p1);
158 return string.Format(resourceFormat, p1);
161 internal static string Format(
string resourceFormat,
object p1,
object p2)
165 return string.Join(
", ", resourceFormat, p1, p2);
167 return string.Format(resourceFormat, p1, p2);
170 internal static string Format(
string resourceFormat,
object p1,
object p2,
object p3)
174 return string.Join(
", ", resourceFormat, p1, p2, p3);
176 return string.Format(resourceFormat, p1, p2, p3);
179 internal static string Format(
string resourceFormat, params
object[] args)
185 return resourceFormat +
", " +
string.Join(
", ", args);
187 return string.Format(resourceFormat, args);
189 return resourceFormat;
static bool TryGetSwitch(string switchName, out bool isEnabled)
virtual ? string GetString(string name)
static string FileExtensionsAttribute_Invalid
static string ValidationAttribute_ValidationError
static string CustomValidationAttribute_Method_Required
static string MaxLengthAttribute_InvalidMaxLength
static string StringLengthAttribute_InvalidMaxLength
static string GetResourceString(string resourceKey, string defaultString)
static string StringLengthAttribute_ValidationErrorIncludingMinimum
static string UIHintImplementation_NeedEvenNumberOfControlParameters
static string RangeAttribute_MinGreaterThanMax
static string Common_PropertyNotFound
static string UIHintImplementation_ControlParameterKeyOccursMoreThanOnce
static string Validator_InstanceMustMatchValidationContextInstance
static string ValidationAttribute_Cannot_Set_ErrorMessage_And_Resource
static string UrlAttribute_Invalid
static string DataTypeAttribute_EmptyDataTypeString
static string MaxLengthAttribute_ValidationError
static ResourceManager s_resourceManager
static string RegularExpressionAttribute_Empty_Pattern
static string AttributeStore_Unknown_Property
static string MetadataTypeAttribute_TypeCannotBeNull
static string CreditCardAttribute_Invalid
static string Format(string resourceFormat, object p1)
static string EnumDataTypeAttribute_TypeNeedsToBeAnEnum
static string Format(string resourceFormat, object p1, object p2)
static string ValidationAttribute_ResourceTypeDoesNotHaveProperty
static string Validator_Property_Value_Wrong_Type
static string CustomValidationAttribute_Method_Must_Return_ValidationResult
static string MinLengthAttribute_ValidationError
static string PhoneAttribute_Invalid
static string CustomValidationAttribute_Type_Conversion_Failed
static string CustomValidationAttribute_Method_Not_Found
static string ArgumentIsNullOrWhitespace
static string LengthAttribute_InvalidValueType
static string CustomValidationAttribute_ValidatorType_Required
static ResourceManager ResourceManager
static string RequiredAttribute_ValidationError
static string EnumDataTypeAttribute_TypeCannotBeNull
static string UIHintImplementation_ControlParameterKeyIsNull
static string RangeAttribute_Must_Set_Min_And_Max
static string CompareAttribute_UnknownProperty
static string CustomValidationAttribute_Method_Signature
static string RangeAttribute_ArbitraryTypeNotIComparable
static string MinLengthAttribute_InvalidMinLength
static string LocalizableString_LocalizationFailed
static string CustomValidationAttribute_Type_Must_Be_Public
static string RangeAttribute_Must_Set_Operand_Type
static string DisplayAttribute_PropertyNotSet
static string EmailAddressAttribute_Invalid
static string GetResourceString(string resourceKey)
static bool UsingResourceKeys()
static string AssociatedMetadataTypeTypeDescriptor_MetadataTypeContainsUnknownProperties
static string ValidationAttribute_NeedBothResourceTypeAndResourceName
static string StringLengthAttribute_ValidationError
static string RangeAttribute_ValidationError
static string CustomValidationAttribute_ValidationError
static string UIHintImplementation_ControlParameterKeyIsNotAString
static string Format(string resourceFormat, object p1, object p2, object p3)
static readonly bool s_usingResourceKeys
static string ValidationAttribute_IsValid_NotImplemented
static string ValidationAttribute_ResourcePropertyNotStringType
static string RegexAttribute_ValidationError
static string CompareAttribute_MustMatch
static string Format(string resourceFormat, params object[] args)