Class IntegerLessThanValidator
- Namespace
- CloudyWing.FormValidators
- Assembly
- CloudyWing.FormValidators.dll
Validate that an integer value is less than another column value.
public sealed class IntegerLessThanValidator : LessThanValidator<long>, IFormValidator
- Inheritance
-
IntegerLessThanValidator
- Implements
- Inherited Members
Constructors
IntegerLessThanValidator(string, string, string, string, bool, Func<string, string, string, string, bool, string>)
Initializes a new instance of the IntegerLessThanValidator class.
public IntegerLessThanValidator(string column, string value, string comparisonColumn, string comparisonValue, bool allowedEqual = true, Func<string, string, string, string, bool, string> customErrorMessageAccessor = null)
Parameters
columnstringThe column.
valuestringThe value.
comparisonColumnstringThe comparison column.
comparisonValuestringThe comparison value.
allowedEqualboolif set to
true[allowed equal].customErrorMessageAccessorFunc<string, string, string, string, bool, string>The custom error message accessor. The arguments are column, value, comparison column, comparison value, allowed equal.
Methods
TryParse(string, out long)
Tries the parse.
protected override bool TryParse(string value, out long result)
Parameters
Returns
- bool
Parse value to type
Tresult.