C# Client Library
A C# Client Library for the AnalyzeRe REST API
Loading...
Searching...
No Matches
AnalyzeRe.Attributes.NumericValidationAttribute Class Referenceabstract

Any attribute that can validate the value of a property. More...

Public Member Functions

bool IsValid (object value)
 Determines whether the given value meets this attribute's validation criteria.
 

Protected Member Functions

double GetValue (object value)
 Gets the double value corresponding to the supplied object.
 

Detailed Description

Any attribute that can validate the value of a property.

Definition at line 8 of file NumericValidationAttribute.cs.

Inheritance diagram for AnalyzeRe.Attributes.NumericValidationAttribute:
AnalyzeRe.Attributes.ValidationAttribute AnalyzeRe.Attributes.GreaterThanAttribute AnalyzeRe.Attributes.LessThanAttribute

Member Function Documentation

◆ GetValue()

double AnalyzeRe.Attributes.NumericValidationAttribute.GetValue ( object  value)
inlineprotected

Gets the double value corresponding to the supplied object.

Parameters
valueThe property value to convert to a double.
Returns
The value as a double.
Exceptions
InvalidCastExceptionThe 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
valueThe value to test.
Returns
True if the value is valid for this attribute.

The documentation for this class was generated from the following file: