Skip to content

IEnumerable.GetEnumerator

Return an enumerator interface for this class.

Declaration

Source position: objpash.inc line 362

function IEnumerable.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

Name Description
IEnumerator Enumerator support interface.