StringKeyedDictionaryTValue(IEnumerableKeyValuePairString, TValue, StringSegmentComparer) Constructor

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

Definition

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

Parameters

collection  IEnumerableKeyValuePairString, TValue
The collection 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