Summary
Composes self Specification
with LessThanSpecification<T>
for
candidate property:
Checks if candidate property is lower than expected value.
Syntax
[PublicAPI]
[NotNull]
public static IComplexSpecification<T> LessThan<T, TProperty>(this ICompositeSpecification<T> self, Expression<Func<T, TProperty>> selector, TProperty lessThan, IComparer<TProperty> comparer = null)
Attributes
Type |
Description |
PublicAPI |
|
NotNull |
|
Type Parameters
Name |
Description |
T |
Type of candidate. |
TProperty |
Type of compared objects. |
Parameters
Name |
Type |
Description |
self |
ICompositeSpecification<T> |
Self specification. |
selector |
Expression<Func<T, TProperty>> |
Candidate property selector. |
lessThan |
TProperty |
Candidate property should be less than value. |
comparer |
IComparer<TProperty> |
Comparer. |
Return Value
Exceptions
Type |
Description |
System.ArgumentNullException |
Thrown when self or selector is null. |
System.ArgumentException |
Thrown when selector is not valid. |
System.ArgumentException |
Thrown when TProperty has no valid comparison methods. |