IEnumerable Interface

Definition

Exposes an enumerator, which supports a simple iteration over a non-generic collection.

Delphi
type IEnumerable = interface(IInvokable)
Inheritance
IInvokable
IEnumerable
Derived

Properties

Count

Returns the number of elements in a sequence.

ElementType

Returns the type of the elements in the sequence.

IsEmpty

Determines whether the sequence contains no elements.

Methods

AsObject

Returns the reference to this instance.

GetCount
GetElementType
GetEnumerator

Returns an enumerator that iterates through a collection.

GetIsEmpty
GetNonEnumeratedCount

Attempts to retrieve the count without calling the enumerator; returns -1 otherwise.