BaseBetweenSpecification<T>.

BaseBetweenSpecification(T, T, bool, IComparer<T>) Constructor

Summary

Creates Specification for candidate value comparison.

Syntax

[PublicAPI]
protected BaseBetweenSpecification(T from, T to, bool inclusive, IComparer<T> comparer)

Attributes

Type Description
PublicAPI

Parameters

Name Type Description
from T Min candidate value.
to T Max candidate value.
inclusive bool Values can be equal.
comparer IComparer<T> Comparer.

Return Value

Type Description
void

Exceptions

Type Description
System.ArgumentException Thrown when T has no valid comparison methods.
System.ArgumentException Thrown when from is greater than to.
GitHub