PriorityQueueTTrimExcess Method |
Namespace: DigitalRune.Collections
This method can be used to minimize a collection's memory overhead if no new elements will be added to the collection.
To reset a PriorityQueueT to its initial state, call the Clear method before calling TrimExcess method. Trimming an empty PriorityQueueT sets the capacity of the PriorityQueueT to the default capacity.