Skip to main content

LessThanOrEqualValidator

Assembly: ServiceStack.dll
View Source
Declaration
public class LessThanOrEqualValidator : AbstractComparisonValidator, IComparisonValidator, IPropertyValidator

Properties

Comparison

View Source
Declaration
public override Comparison Comparison { get; }

Inherited Properties

Comparison

Metadata- the comparison type

View Source
Declaration
public abstract Comparison Comparison { get; }

MemberToCompare

Metadata- the member being compared

View Source
Declaration
public MemberInfo MemberToCompare { get; }

ValueToCompare

Metadata- the value being compared

View Source
Declaration
public object ValueToCompare { get; }

Methods

IsValid(IComparable, IComparable)

View Source
Declaration
public override bool IsValid(IComparable value, IComparable valueToCompare)
Returns

System.Boolean

Parameters
TypeName
System.IComparablevalue
System.IComparablevalueToCompare

GetDefaultMessageTemplate()

View Source
Declaration
protected override string GetDefaultMessageTemplate()
Returns

System.String

Inherited Methods

GetComparableValue(PropertyValidatorContext, Object)

View Source
Declaration
public IComparable GetComparableValue(PropertyValidatorContext context, object value)
Returns

System.IComparable

Parameters
TypeName
ServiceStack.FluentValidation.Validators.PropertyValidatorContextcontext
System.Objectvalue

GetComparisonValue(PropertyValidatorContext)

View Source
Declaration
public IComparable GetComparisonValue(PropertyValidatorContext context)
Returns

System.IComparable

Parameters
TypeName
ServiceStack.FluentValidation.Validators.PropertyValidatorContextcontext

IsValid(PropertyValidatorContext)

Performs the comparison

View Source
Declaration
protected sealed override bool IsValid(PropertyValidatorContext context)
Returns

System.Boolean

Parameters
TypeName
ServiceStack.FluentValidation.Validators.PropertyValidatorContextcontext

IsValid(IComparable, IComparable)

Override to perform the comparison

View Source
Declaration
public abstract bool IsValid(IComparable value, IComparable valueToCompare)
Returns

System.Boolean

Parameters
TypeName
System.IComparablevalue
System.IComparablevalueToCompare

Implements