Constructor HashSetDictionary
HashSetDictionary()
Initializes a new instance of the HashSetDictionary<TKey, TValue> class.
Declaration
public HashSetDictionary()HashSetDictionary(int)
Initializes a new instance of the HashSetDictionary<TKey, TValue> class with the specified initial capacity for key/value set pairs.
Declaration
public HashSetDictionary(int capacity)Parameters
| Type | Name | Description | 
|---|---|---|
| int | capacity | 
HashSetDictionary(IEqualityComparer<TKey>?, IEqualityComparer<TValue>?)
Initializes a new instance of the HashSetDictionary<TKey, TValue> class that uses the specified key and value comparers.
Declaration
public HashSetDictionary(IEqualityComparer<TKey>? keyComparer = null, IEqualityComparer<TValue>? valueComparer = null)Parameters
| Type | Name | Description | 
|---|---|---|
| IEqualityComparer<TKey> | keyComparer | |
| IEqualityComparer<TValue> | valueComparer | 
HashSetDictionary(int, IEqualityComparer<TKey>?, IEqualityComparer<TValue>?)
Initializes a new instance of the HashSetDictionary<TKey, TValue> class with the specified initial capacity for key/value set pairs, and uses the specified key and value comparers.
Declaration
public HashSetDictionary(int capacity, IEqualityComparer<TKey>? keyComparer = null, IEqualityComparer<TValue>? valueComparer = null)Parameters
| Type | Name | Description | 
|---|---|---|
| int | capacity | |
| IEqualityComparer<TKey> | keyComparer | |
| IEqualityComparer<TValue> | valueComparer | 
