System.IEnumerable.GetEnumerator

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function GetEnumerator: IEnumerator;
function GetEnumerator: IEnumerator<T>;

C++

virtual _di_IEnumerator __fastcall GetEnumerator() = 0 ;

Properties

Type Visibility Source Unit Parent
function public
System.pas
System.hpp
System IEnumerable

Description

Returns an enumerator used to iterate over a collection.

Call GetEnumerator to obtain an enumerator to iterate over a collection. Delphi language supports the for..in statement, which automatically uses GetEnumerator to obtain a reference to the enumerator object.

See Also