Specifies that the property with this attribute should be greater than the specified amount.
More...
|
| | GreaterThanAttribute (double greaterThanValue, bool canEqual=false) |
| | 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.
|
| |
|
| double | GetValue (object value) |
| | Gets the double value corresponding to the supplied object.
|
| |
|
| bool | CanEqual [get] |
| | (Default: False) Set to true if the property can be greater than OR EQUAL to the specified value.
|
| |
| double | GreaterThanValue [get] |
| | The number this property should be greater than.
|
| |
Specifies that the property with this attribute should be greater than the specified amount.
Definition at line 8 of file GreaterThanAttribute.cs.
◆ GreaterThanAttribute()
| AnalyzeRe.Attributes.GreaterThanAttribute.GreaterThanAttribute |
( |
double |
greaterThanValue, |
|
|
bool |
canEqual = false |
|
) |
| |
|
inline |
Specifies that the property with this attribute should be greater than the specified amount.
- Parameters
-
| greaterThanValue | The number this property should be greater than. |
| canEqual | (Default: False) Set to true if the property can be greater than OR EQUAL to the specified value. |
Definition at line 23 of file GreaterThanAttribute.cs.
◆ GetValue()
| double AnalyzeRe.Attributes.NumericValidationAttribute.GetValue |
( |
object |
value | ) |
|
|
inlineprotectedinherited |
Gets the double value corresponding to the supplied object.
- Parameters
-
| value | The property value to convert to a double. |
- Returns
- The value as a double.
- Exceptions
-
| InvalidCastException | The property value had an unsupported type which could not be cast to a double. |
Definition at line 15 of file NumericValidationAttribute.cs.
◆ IsValid()
| override bool AnalyzeRe.Attributes.GreaterThanAttribute.IsValid |
( |
object |
value | ) |
|
|
inline |
Determines whether the given value passes validation.
- Parameters
-
- Returns
- True if the value is meets the validation requirement.
Definition at line 32 of file GreaterThanAttribute.cs.
◆ CanEqual
| bool AnalyzeRe.Attributes.GreaterThanAttribute.CanEqual |
|
get |
(Default: False) Set to true if the property can be greater than OR EQUAL to the specified value.
Definition at line 15 of file GreaterThanAttribute.cs.
◆ GreaterThanValue
| double AnalyzeRe.Attributes.GreaterThanAttribute.GreaterThanValue |
|
get |
The documentation for this class was generated from the following file: