TObjectArrayList<T>.Create Constructor

Definition

Initializes a new instance of the TObjectArrayList<T> class.

Delphi
constructor Create(OwnsObjects: Boolean = True);

Parameters

OwnsObjects
Boolean

True to free contained objects when they are removed, deleted, cleared, or when the list is destroyed; otherwise, false.

Remarks

The ownership setting is fixed for the lifetime of the list.