StringKeyedDictionaryTValue(Int32, StringSegmentComparer) Constructor

Initializes a new instance of the StringKeyedDictionaryTValue class using the specified capacity and comparer.

Definition

Namespace: KGySoft.Collections
Assembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 10.0.0
C#
public StringKeyedDictionary(
	int capacity,
	StringSegmentComparer? comparer = null
)

Parameters

capacity  Int32
The initial capacity that the StringKeyedDictionaryTValue can contain.
comparer  StringSegmentComparer  (Optional)
A StringSegmentComparer instance to use when comparing keys. When , ordinal comparison will be used. This parameter is optional.
Default value: .

See Also