ThreadSafeDictionaryTKey, TValue(Int32, HashingStrategy) Constructor
Namespace: KGySoft.CollectionsAssembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 10.0.0
public ThreadSafeDictionary(
int capacity,
HashingStrategy strategy = HashingStrategy.Auto
)
Public Sub New (
capacity As Integer,
Optional strategy As HashingStrategy = HashingStrategy.Auto
)
public:
ThreadSafeDictionary(
int capacity,
HashingStrategy strategy = HashingStrategy::Auto
)
new :
capacity : int *
?strategy : HashingStrategy
(* Defaults:
let _strategy = defaultArg strategy HashingStrategy.Auto
*)
-> ThreadSafeDictionary
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.