Clear all data.
Clear removes all keys and values from the dictionary. The Count property is set to 0. The capacity is also set to 0. This operation requires O(n) time, where n is Count, the number of dictionary entries.
Note |
---|
Clear does not free the items as they are removed. If you need to free them, use the OnKeyNotify event and the OnValueNotify event, which occur for every entry removed and provides the removed items. |
Namespace: RSGenerics.Collections
Delphi |
public |