Unit 'Classes' Package
[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] [#rtl]

TListEnumerator

[Properties (by Name)] [Methods (by Name)] [Events (by Name)]

Implements IEnumerator for the TList class.

Declaration

Source position: classesh.inc line 578

type TListEnumerator = class(TFPListEnumerator)

public

  constructor Create();

  

Initialize a new instance of TListEnumerator.

end;

Inheritance

TListEnumerator

  

Implements IEnumerator for the TList class.

|

TFPListEnumerator

  

Implements IEnumerator for the TFPList class.

|

TObject

  

Base class of all classes.

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.

See also

TList

  

Class to manage collections of pointers.

TList.GetEnumerator

  

Create an IEnumerator instance.

#rtl.system.IEnumerator

  

Enumerator support interface.


Documentation generated on: Dec 22 2024