IEnumerable<T>.ElementAt Method

Definition

Returns the element at a specified index in the sequence.

Delphi
function ElementAt(index: Integer): T

Parameters

index
Integer

The zero-based index of the element to retrieve.

Returns

T

The element at the specified position in the sequence.

Exceptions

index is less than 0 or greater than or equal to the number of elements in the sequence.