StringKeyedDictionaryTValue(IEnumerableKeyValuePairString, TValue, StringSegmentComparer) Constructor
Namespace: KGySoft.CollectionsAssembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 10.0.0
public StringKeyedDictionary(
IEnumerable<KeyValuePair<string, TValue>> collection,
StringSegmentComparer? comparer = null
)
Public Sub New (
collection As IEnumerable(Of KeyValuePair(Of String, TValue)),
Optional comparer As StringSegmentComparer = Nothing
)
public:
StringKeyedDictionary(
IEnumerable<KeyValuePair<String^, TValue>>^ collection,
StringSegmentComparer^ comparer = nullptr
)
new :
collection : IEnumerable<KeyValuePair<string, 'TValue>> *
?comparer : StringSegmentComparer
(* Defaults:
let _comparer = defaultArg comparer null
*)
-> StringKeyedDictionary
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: .