AdvisableHashSet()
Initializes a new instance of the AdvisableHashSet<T> class that is empty and uses the default equality comparer for the set type.
Declaration
public AdvisableHashSet()
AdvisableHashSet(IEnumerable<T>)
Initializes a new instance of the AdvisableHashSet<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.
Declaration
public AdvisableHashSet(IEnumerable<T> collection)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<T> | collection | The collection whose elements are copied to the new set. |
AdvisableHashSet(IEqualityComparer<T>)
Initializes a new instance of the AdvisableHashSet<T> class that is empty and uses the specified equality comparer for the set type.
Declaration
public AdvisableHashSet(IEqualityComparer<T> comparer)
Parameters
Type | Name | Description |
---|---|---|
IEqualityComparer<T> | comparer | The IEqualityComparer<T> implementation to use when comparing values in the set,
or |
AdvisableHashSet(IEnumerable<T>, IEqualityComparer<T>)
Initializes a new instance of the AdvisableHashSet<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.
Declaration
public AdvisableHashSet(IEnumerable<T> collection, IEqualityComparer<T> comparer)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<T> | collection | The collection whose elements are copied to the new set. |
IEqualityComparer<T> | comparer | The IEqualityComparer<T> implementation to use when comparing values in the set,
or |