Share via


ObservableHashSet<T>.TrimExcess Method

Definition

Sets the capacity of the hash set to the actual number of elements it contains, rounded up to a nearby, implementation-specific value.

public virtual void TrimExcess ();
abstract member TrimExcess : unit -> unit
override this.TrimExcess : unit -> unit
Public Overridable Sub TrimExcess ()

Applies to