InclusiveBetweenSpecification<T>.

InclusiveBetweenSpecification(T, T, IComparer<T>) Constructor

Summary

Creates Specification for candidate value comparison.

Syntax

[PublicAPI]
public InclusiveBetweenSpecification(T from, T to, IComparer<T> comparer = null)

Attributes

Type Description
PublicAPI

Parameters

Name Type Description
from T Min candidate value.
to T Max candidate value.
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