TCollections Class

Definition

Creates default collection implementations.

Delphi
TCollections = class(TObject)
Inheritance
TObject
TCollections

Remarks

Factory methods return IList<T> and IDictionary<TKey,TValue> interfaces so callers can depend on abstractions rather than concrete implementation classes.

Methods

CreateDictionary<TKey,TValue>

Creates a hash-based dictionary.

CreateDictionary<TKey,TValue>(IEqualityComparer<TKey>)

Creates a hash-based dictionary that uses an equality comparer for key lookup.

CreateList<T>

Creates a resizable list of values.

CreateList<T>(IEqualityComparer<T>)

Creates a resizable list that uses an equality comparer for lookup operations.

CreateObjectList<T>(Boolean)

Creates a resizable list for object references.

See also