Adds the elements of an ICollection into the HashSet.
[Visual Basic]
Overrides Overloads Public Function Add( _
ByVal collection As ICollection _
) As Boolean Implements _
ISet.Add
true if the HashSet is modified; otherwise false.
| Exception Type | Condition |
|---|---|
| System.ArgumentNullException |
The collection is a null reference
(Nothing in Visual Basic).
|
HashSet Class | HashSet Members | Foley.Utilities.Collections Namespace | HashSet.Add Overload List