ThreadSafeHashSetT(Int32, HashingStrategy) Constructor
Initializes a new instance of the
ThreadSafeHashSetT class that is empty
and uses the default comparer and the specified hashing
strategy.
Namespace: KGySoft.CollectionsAssembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 9.0.0
public ThreadSafeHashSet(
int capacity,
HashingStrategy strategy = HashingStrategy.Auto
)
Public Sub New (
capacity As Integer,
Optional strategy As HashingStrategy = HashingStrategy.Auto
)
public:
ThreadSafeHashSet(
int capacity,
HashingStrategy strategy = HashingStrategy::Auto
)
new :
capacity : int *
?strategy : HashingStrategy
(* Defaults:
let _strategy = defaultArg strategy HashingStrategy.Auto
*)
-> ThreadSafeHashSet
Parameters
- capacity Int32
- Specifies the initial minimum capacity of the internal temporal storage for new items.
If 0, then a default capacity is used.
- strategy HashingStrategy (Optional)
- The hashing strategy to be used in the created ThreadSafeHashSetT. This parameter is optional.
Default value: Auto.