AllowNullDictionaryTKey, TValue(Int32, IEqualityComparerTKey) Constructor

Initializes a new instance of the AllowNullDictionaryTKey, TValue class using the specified capacity and comparer.

Definition

Namespace: KGySoft.Collections
Assembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 10.0.0
C#
public AllowNullDictionary(
	int capacity,
	IEqualityComparer<TKey>? comparer = null
)

Parameters

capacity  Int32
The initial capacity that the AllowNullDictionaryTKey, TValue can contain.
comparer  IEqualityComparerTKey  (Optional)
The IEqualityComparerT implementation to use when comparing keys. This parameter is optional.
Default value: .

See Also