ToDictionaryExtensionToDictionary Method

Overload List

ToDictionaryTKey, TValue(IEnumerableKeyValuePairTKey, TValue) Creates a DictionaryTKey, TValue from a sequence of KeyValuePairTKey, TValue elements.
ToDictionaryTKey, TValue(IEnumerableValueTupleTKey, TValue) Creates a DictionaryTKey, TValue from a sequence of tuples of 2 where the first item is the key and the second the value.
ToDictionaryTKey, TValue(IEnumerableKeyValuePairTKey, TValue, IEqualityComparerTKey) Creates a DictionaryTKey, TValue from a sequence of KeyValuePairTKey, TValue elements. An additional parameter specifies a comparer for keys.
ToDictionaryTKey, TValue(IEnumerableValueTupleTKey, TValue, IEqualityComparerTKey) Creates a DictionaryTKey, TValue from a sequence of tuples of 2 where the first item is the key and the second the value. An additional parameter specifies a comparer for keys.

See Also