Sign in Join
FPDoc Onlineexperiment

IEnumerable.GetEnumerator function

Member of IEnumerableIn unit System

Return an enumerator interface for this class.

Declaration

pascal
function GetEnumerator: IEnumerator

Description

GetEnumerator returns a new IEnumerator interface for this class. This is called by the compiler whenever a for in loop is encountered in the source code to retrieve the enumerator instance.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.