ThreadSafeDictionaryTKey, TValue(Int32, HashingStrategy) Constructor

Initializes a new instance of the ThreadSafeDictionaryTKey, TValue class that is empty and uses the default comparer and the specified hashing strategy.

Definition

Namespace: KGySoft.Collections
Assembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 8.1.0
C#
public ThreadSafeDictionary(
	int capacity,
	HashingStrategy strategy = HashingStrategy.Auto
)

Parameters

capacity  Int32
Specifies the initial minimum capacity of the internal temporal storage for values with new keys. If 0, then a default capacity is used.
strategy  HashingStrategy  (Optional)
The hashing strategy to be used in the created ThreadSafeDictionaryTKey, TValue. This parameter is optional.
Default value: Auto.

See Also