Initializes a new instance of the HashSet class that contains elements copied from the specified collection with the specified initial capacity and using the specified load factor, the default hash code provider and the default comparer.
[Visual Basic]
Overloads Public Sub New( _
ByVal collection As ICollection, _
ByVal initialCapacity As Integer _
)
Exception Type | Condition |
---|---|
System.ArgumentOutOfRangeException | capacity is less than zero. |
HashSet Class | HashSet Members | Foley.Utilities.Collections Namespace | HashSet Constructor Overload List