13 [RequiresUnreferencedCode(
"Uses reflection to get the 'Count' property on types that don't implement ICollection. This 'Count' property may be trimmed. Ensure it is preserved.")]
20 [RequiresUnreferencedCode(
"Uses reflection to get the 'Count' property on types that don't implement ICollection. This 'Count' property may be trimmed. Ensure it is preserved.")]
27 [UnconditionalSuppressMessage(
"ReflectionAnalysis",
"IL2026:RequiresUnreferencedCode", Justification =
"The ctors are marked with RequiresUnreferencedCode.")]
static bool TryGetCount(object value, out int count)
static string DefaultErrorMessageString
void EnsureLegalLengths()
MaxLengthAttribute(int length)
override string FormatErrorMessage(string name)
override bool IsValid(object? value)
static CultureInfo CurrentCulture
static string MaxLengthAttribute_InvalidMaxLength
static string MaxLengthAttribute_ValidationError
static string Format(string resourceFormat, object p1)
static string LengthAttribute_InvalidValueType