Initializes a new instance of the HashSet<(Of <(T>)>) class that is empty and uses the specified equality comparer for the set type.
Public Sub New ( _ comparer As IEqualityComparer(Of T) _ )
public HashSet( IEqualityComparer<T> comparer )
public: HashSet( IEqualityComparer<T>^ comparer )
new : comparer:IEqualityComparer<'T> -> HashSet
The capacity of a HashSet<(Of <(T>)>) object is the number of elements that the object can hold. A HashSet<(Of <(T>)>) object's capacity automatically increases as elements are added to the object.
This constructor is an O(1) operation.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2