RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
IEnumerable.GetEnumerator Method

Returns an enumerator used to iterate over a collection.

Pascal
function GetEnumerator: IEnumerator<T>;
C++
__fastcall IEnumerator<T> GetEnumerator();

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. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!