7 [AttributeUsage(AttributeTargets.Property, Inherited =
true, AllowMultiple =
false)]
32 public override bool IsValid(
object value)
36 if (value ==
null)
return true;
Specifies that the property with this attribute should be less than the specified amount.
double LessThanValue
The number this property should be greater than.
LessThanAttribute(double lessThanValue, bool canEqual=false)
Specifies that the property with this attribute should be less than the specified amount.
bool CanEqual
(Default: False) Set to true if the property can be greater than OR EQUAL to the specified value.
override bool IsValid(object value)
Determines whether the given value passes validation.
Any attribute that can validate the value of a property.
double GetValue(object value)
Gets the double value corresponding to the supplied object.