Method TrimExcess
View SourceTrimExcess()
Sets the capacity to the actual number of items in the UpdatablePriorityQueue<TElement, TPriority>, if that is less than 90 percent of current capacity.
Declaration
public void TrimExcess()
Remarks
This method can be used to minimize a collection's memory overhead if no new elements will be added to the collection.