[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] | Reference for unit 'Objects' (#rtl)

# TCollection.Done

Clean up collection, release all memory.

## Declaration

Source position: objects.pp line 411

`destructor TCollection.Done; virtual;`

## Description

Done frees all objects in the collection, and then releases all memory occupied by the instance.

For an example, see TCollection.ForEach.

## Errors

None.

## See also

TCollection.Init |  | Instantiate a new collection.
TCollection.FreeAll |  | Release all objects from the collection.

Documentation generated on: May 14 2021