System.IEnumerable.GetEnumerator

From Appmethod Libraries
Jump to: navigation, search

Object Pascal

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

C++

virtual _di_IEnumerator __fastcall GetEnumerator(void) = 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. Object Pascal language supports the for..in statement, which automatically uses GetEnumerator to obtain a reference to the enumerator object.

See Also