C# Client Library
A C# Client Library for the AnalyzeRe REST API
AnalyzeRe.Attributes.LessThanAttribute Class Reference

Specifies that the property with this attribute should be less than the specified amount. More...

Public Member Functions

 LessThanAttribute (double lessThanValue, bool canEqual=false)
 Specifies that the property with this attribute should be less than the specified amount. More...
 
override bool IsValid (object value)
 Determines whether the given value passes validation. More...
 

Protected Member Functions

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

Properties

bool CanEqual [get]
 (Default: False) Set to true if the property can be greater than OR EQUAL to the specified value. More...
 
double LessThanValue [get]
 The number this property should be greater than. More...
 

Detailed Description

Specifies that the property with this attribute should be less than the specified amount.

Definition at line 8 of file LessThanAttribute.cs.

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

Constructor & Destructor Documentation

AnalyzeRe.Attributes.LessThanAttribute.LessThanAttribute ( double  lessThanValue,
bool  canEqual = false 
)
inline

Specifies that the property with this attribute should be less than the specified amount.

Parameters
lessThanValueThe number this property should be less than.
canEqual(Default: False) Set to true if the property can be less than OR EQUAL to the specified value.

Definition at line 23 of file LessThanAttribute.cs.

Member Function Documentation

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

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.

override bool AnalyzeRe.Attributes.LessThanAttribute.IsValid ( object  value)
inlinevirtual

Determines whether the given value passes validation.

Parameters
valueThe value to test.
Returns
True if the value is meets the validation requirement.

Implements AnalyzeRe.Attributes.ValidationAttribute.

Definition at line 32 of file LessThanAttribute.cs.

Property Documentation

bool AnalyzeRe.Attributes.LessThanAttribute.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 LessThanAttribute.cs.

double AnalyzeRe.Attributes.LessThanAttribute.LessThanValue
get

The number this property should be greater than.

Definition at line 11 of file LessThanAttribute.cs.


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