IRange<T>.Includes

Method in IRange<T>

Declaration

bool Includes(T value)

Description

Checks if a value is in the range.

Parameters

valueThe value to check.

Returns

boolTrue if the value is in the range, false otherwise.

Overload

Declaration

bool Includes(T value, bool includeMin, bool includeMax)

Description

Checks if a value is in the range.

Parameters

valueThe value to check.
includeMinThe minimum value is inclusive if true, exclusive if false.
includeMaxThe maximum value is inclusive if true, exclusive if false.

Returns

boolTrue if the value is in the range, false otherwise.