2 writes to MaximumLength
Shared (2)
Data.Validation\LengthAttribute.cs (2)
60MaximumLength = null; 78MaximumLength = maximumLength;
9 references to MaximumLength
Shared (9)
Data.Validation\LengthAttribute.cs (9)
42/// Gets or sets a value indicating whether the length validation should exclude the <see cref="MinimumLength"/> and <see cref="MaximumLength"/> values. 91/// <exception cref="ArgumentOutOfRangeException"><see cref="MinimumLength"/> is less than zero or if it is greater than <see cref="MaximumLength"/>.</exception> 101if (MaximumLength.HasValue && MinimumLength >= MaximumLength) 156if (MaximumLength.HasValue) 160? count > MinimumLength && count < MaximumLength 161: count >= MinimumLength && count <= MaximumLength; 180var validationMessage = MaximumLength.HasValue 181? $"The field {validationContext.GetDisplayName()} length must be in the {exclusiveString}range [{MinimumLength}..{MaximumLength}]."