8 [AttributeUsage(AttributeTargets.Property | AttributeTargets.Field, AllowMultiple =
false, Inherited =
true)]
11 private readonly
string min;
12 private readonly
string max;
21 this.min =
Min?.ToString();
22 this.max =
Max?.ToString();
28 public string Min => this.min;
33 public string Max => this.max;
Defines a valid input range for the property.
string Max
Largest accepted value. Can be null, if no maximum exists.
RangeAttribute(object Min, object Max)
Defines a valid input range for the property.
string Min
Smallest accepted value. Can be null, if no minimum exists.