2 writes to Length
System.ComponentModel.DataAnnotations (2)
DataAnnotations\MaxLengthAttribute.cs (2)
28
Length
= length;
37
Length
= MaxAllowableLength;
5 references to Length
System.ComponentModel.DataAnnotations (5)
DataAnnotations\MaxLengthAttribute.cs (5)
74
return MaxAllowableLength ==
Length
|| length <=
Length
;
84
return string.Format(CultureInfo.CurrentCulture, ErrorMessageString, name,
Length
);
92
if (
Length
== 0 ||
Length
< -1) {