Table of Contents

Constructor ValueDictionary

Namespace
GuildWars2.Collections
Assembly
GW2SDK.dll

ValueDictionary()

Initializes a new instance of the ValueDictionary<TKey, TValue> class that is empty.

public ValueDictionary()

ValueDictionary(IEqualityComparer<TKey>?)

Initializes a new instance of the ValueDictionary<TKey, TValue> class that is empty and uses the specified comparer.

public ValueDictionary(IEqualityComparer<TKey>? comparer)

Parameters

comparer IEqualityComparer<TKey>

The comparer to use for the keys.

ValueDictionary(int)

Initializes a new instance of the ValueDictionary<TKey, TValue> class that is empty and has the specified initial capacity.

public ValueDictionary(int capacity)

Parameters

capacity int

The number of elements that the new dictionary can initially store.

ValueDictionary(int, IEqualityComparer<TKey>?)

Initializes a new instance of the ValueDictionary<TKey, TValue> class that is empty, has the specified initial capacity, and uses the specified comparer.

public ValueDictionary(int capacity, IEqualityComparer<TKey>? comparer)

Parameters

capacity int

The number of elements that the new dictionary can initially store.

comparer IEqualityComparer<TKey>

The comparer to use for the keys.

ValueDictionary(IDictionary<TKey, TValue>)

Initializes a new instance of the ValueDictionary<TKey, TValue> class that contains elements copied from the specified dictionary.

public ValueDictionary(IDictionary<TKey, TValue> dictionary)

Parameters

dictionary IDictionary<TKey, TValue>

The dictionary whose elements are copied to the new dictionary.

ValueDictionary(IDictionary<TKey, TValue>, IEqualityComparer<TKey>?)

Initializes a new instance of the ValueDictionary<TKey, TValue> class that contains elements copied from the specified dictionary and uses the specified comparer.

public ValueDictionary(IDictionary<TKey, TValue> dictionary, IEqualityComparer<TKey>? comparer)

Parameters

dictionary IDictionary<TKey, TValue>

The dictionary whose elements are copied to the new dictionary.

comparer IEqualityComparer<TKey>

The comparer to use for the keys.

ValueDictionary(IEnumerable<KeyValuePair<TKey, TValue>>)

Initializes a new instance of the ValueDictionary<TKey, TValue> class that contains elements copied from the specified collection.

public ValueDictionary(IEnumerable<KeyValuePair<TKey, TValue>> collection)

Parameters

collection IEnumerable<KeyValuePair<TKey, TValue>>

The collection whose elements are copied to the new dictionary.

ValueDictionary(IEnumerable<KeyValuePair<TKey, TValue>>, IEqualityComparer<TKey>?)

Initializes a new instance of the ValueDictionary<TKey, TValue> class that contains elements copied from the specified collection and uses the specified comparer.

public ValueDictionary(IEnumerable<KeyValuePair<TKey, TValue>> collection, IEqualityComparer<TKey>? comparer)

Parameters

collection IEnumerable<KeyValuePair<TKey, TValue>>

The collection whose elements are copied to the new dictionary.

comparer IEqualityComparer<TKey>

The comparer to use for the keys.