HashSet<T> Constructor

 

Initializes a new instance of the HashSet<T> class.

Namespace:   System.Collections.Generic
Assembly:  System.Core (in System.Core.dll)

NameDescription
System_CAPS_pubmethodHashSet<T>()

Initializes a new instance of the HashSet<T> class that is empty and uses the default equality comparer for the set type.

System_CAPS_pubmethodHashSet<T>(IEnumerable<T>)

Initializes a new instance of the HashSet<T> class that uses the default equality comparer for the set type, contains elements copied from the specified collection, and has sufficient capacity to accommodate the number of elements copied.

System_CAPS_pubmethodHashSet<T>(IEnumerable<T>, IEqualityComparer<T>)

Initializes a new instance of the HashSet<T> class that uses the specified equality comparer for the set type, contains elements copied from the specified collection, and has sufficient capacity to accommodate the number of elements copied.

System_CAPS_pubmethodHashSet<T>(IEqualityComparer<T>)

Initializes a new instance of the HashSet<T> class that is empty and uses the specified equality comparer for the set type.

System_CAPS_protmethodHashSet<T>(SerializationInfo, StreamingContext)

Initializes a new instance of the HashSet<T> class with serialized data.

Return to top
Show: