Class LessThanAttribute
- Namespace
- Acuit.Pinpoint.Common.Validation
- Assembly
- Acuit.Pinpoint.Common.dll
Used for specifying a greater-than validation constraint.
[AttributeUsage(AttributeTargets.Property|AttributeTargets.Field|AttributeTargets.Parameter, AllowMultiple = false)]
public sealed class LessThanAttribute : CompareToAttribute, _Attribute
- Inheritance
-
LessThanAttribute
- Implements
- Inherited Members
Constructors
LessThanAttribute(double)
Constructor that takes a double comparison value.
public LessThanAttribute(double comparisonValue)
Parameters
comparisonValue
doubleThe comparison value.
LessThanAttribute(int)
Constructor that takes an integer comparison value.
public LessThanAttribute(int comparisonValue)
Parameters
comparisonValue
intThe comparison value.
LessThanAttribute(Type, string)
Allows for specifying a comparison for arbitrary types. The value string will be converted to the target type.
public LessThanAttribute(Type operandType, string comparisonValue)
Parameters
operandType
TypeThe type of the range parameters. Must implement IComparable.
comparisonValue
stringThe comparison value.