Clear method

void Clear()
Clears the collection.

Implementation

void Clear() {
  // mark the whole collection for deletion
  InternalClear();
  collectionIsCleared = true;
}