IEnumerable<T>.Between Method

Definition

Determines whether or not the number of elements in the sequence is between an inclusive range of minimum and maximum integers.

Delphi
function Between(min: Integer; max: Integer): Boolean

Parameters

min
Integer

The minimum number of items the sequence must have for this function to return true.

max
Integer

The maximun number of items the sequence must have for this function to return true.

Returns

Boolean

True if the number of elements in the sequence is between (inclusive) the min and max given integers; otherwise, False .

Exceptions

min is negative or max is less than min.