IEnumerable<T>.Exactly Method

Definition

Determines whether or not the number of elements in the sequence is equals to the given count.

Delphi
function Exactly(count: Integer): Boolean

Parameters

count
Integer

The exact 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 equals to the given count; otherwise, False .

Exceptions

count is negative.