StringKeyedDictionaryTValue(IDictionaryString, TValue, StringSegmentComparer) Constructor

Initializes a new instance of the StringKeyedDictionaryTValue class from the specified dictionary using the specified comparer.

Definition

Namespace: KGySoft.Collections
Assembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 10.0.0
C#
public StringKeyedDictionary(
	IDictionary<string, TValue> dictionary,
	StringSegmentComparer? comparer = null
)

Parameters

dictionary  IDictionaryString, TValue
The dictionary whose elements are added to the StringKeyedDictionaryTValue.
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