Skip to content

TListEnumerator

Implements IEnumerator for the TList class.

Declaration

Source position: classesh.inc line 580

type

  TListEnumerator = class(TFPListEnumerator)
  public
    constructor Create;
  end;

Description

TListEnumerator implements the #rtl.system.IEnumerator interface for the TList class, so the TList class can be used in a for ... in loop. It is returned by the TList.GetEnumerator method of TList.

Methods

Member Visibility Description
Create public Initialize a new instance of TListEnumerator.
See all Methods

See also

Name Description
TList Class to manage collections of pointers.
TList.GetEnumerator Create an IEnumerator instance.
#rtl.system.IEnumerator Enumerator support interface.