BaseGreaterCompareSpecification<T>.

BaseGreaterCompareSpecification(T, Func<Expression, Expression, Expression>, IComparer<T>) Constructor

Summary

Creates Specification for candidate value comparison.

Syntax

[PublicAPI]
protected BaseGreaterCompareSpecification(T greaterThan, Func<Expression, Expression, Expression> compareExpression, IComparer<T> comparer = null)

Attributes

Type Description
PublicAPI

Parameters

Name Type Description
greaterThan T Candidate should be greater than value.
compareExpression Func<Expression, Expression, Expression> Linq Expression for values comparison.
comparer IComparer<T> Comparer.

Return Value

Type Description
void

Exceptions

Type Description
System.ArgumentException Thrown when T has no valid comparison methods.
GitHub