Any attribute that can validate the value of a property.
More...
|
bool | IsValid (object value) |
| Determines whether the given value meets this attribute's validation criteria.
|
|
|
double | GetValue (object value) |
| Gets the double value corresponding to the supplied object.
|
|
Any attribute that can validate the value of a property.
Definition at line 8 of file NumericValidationAttribute.cs.
◆ GetValue()
double AnalyzeRe.Attributes.NumericValidationAttribute.GetValue |
( |
object |
value | ) |
|
|
inlineprotected |
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()
bool AnalyzeRe.Attributes.ValidationAttribute.IsValid |
( |
object |
value | ) |
|
|
abstractinherited |
Determines whether the given value meets this attribute's validation criteria.
- Parameters
-
- Returns
- True if the value is valid for this attribute.
The documentation for this class was generated from the following file: