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 greater than the specified amount.
override bool IsValid(object value)
Determines whether the given value passes validation.
GreaterThanAttribute(double greaterThanValue, bool canEqual=false)
Specifies that the property with this attribute should be greater than the specified amount.
bool CanEqual
(Default: False) Set to true if the property can be greater than OR EQUAL to the specified value.
double GreaterThanValue
The number this property should be greater than.
Any attribute that can validate the value of a property.
double GetValue(object value)
Gets the double value corresponding to the supplied object.