Foley .NET Utilities Class Library

HashSet Constructor (ICollection)

Initializes a new instance of the HashSet class that contains elements copied from the specified collection.

[Visual Basic]
Overloads Public Sub New( _
   ByVal collection As ICollection _
)
[C#]
public HashSet(
   ICollection collection
);

Parameters

collection
The ICollection whose elements are copied to the new list.

See Also

HashSet Class | HashSet Members | Foley.Utilities.Collections Namespace | HashSet Constructor Overload List