Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Collections Namespace / Advisable­Hash­Set(T) Class / Advisable­Hash­Set(T) Methods / Advisable­Hash­Set(T).​Trim­Excess Method

AdvisableHashSet<T>.TrimExcess Method

Sets the capacity of a AdvisableHashSet<T> object to the actual number of elements it contains, rounded up to a nearby, implementation-specific value.

Namespace:  PostSharp.Patterns.Collections
Assembly:  PostSharp.Patterns.Common (in PostSharp.Patterns.Common.dll) Version: 5.0.51.0 (5.0.51.0)
Syntax
C#
public void TrimExcess()
See Also