public static Dictionary <TKey2, TElement> ToDictionary <TKey, TValue, TKey2, TElement>(this Dictionary <TKey, TValue> source, Selector <KeyValuePair <TKey, TValue>, TKey2> keySelector, NullableSelector <KeyValuePair <TKey, TValue>, TElement> elementSelector, IEqualityComparer <TKey2>?comparer = default)
     where TKey : notnull
     where TKey2 : notnull
 => ValueReadOnlyCollectionExtensions.ToDictionary <ValueWrapper <TKey, TValue>, Dictionary <TKey, TValue> .Enumerator, KeyValuePair <TKey, TValue>, TKey2, TElement>(new ValueWrapper <TKey, TValue>(source), keySelector, elementSelector, comparer);
 public static Dictionary <TKey2, TElement> ToDictionary <TKey, TValue, TKey2, TElement>(this SortedDictionary <TKey, TValue> .KeyCollection source, NullableSelector <TKey, TKey2> keySelector, NullableSelector <TKey, TElement> elementSelector, IEqualityComparer <TKey2>?comparer)
 => ValueReadOnlyCollectionExtensions.ToDictionary <ValueWrapper <TKey, TValue>, SortedDictionary <TKey, TValue> .KeyCollection.Enumerator, TKey, TKey2, TElement>(new ValueWrapper <TKey, TValue>(source), keySelector, elementSelector, comparer);
 public static Dictionary <TKey, TValue> ToDictionary <TKey, TValue>(this Dictionary <TKey, TValue> source, IEqualityComparer <TKey>?comparer = default)
     where TKey : notnull
 => ValueReadOnlyCollectionExtensions.ToDictionary <ValueWrapper <TKey, TValue>, Dictionary <TKey, TValue> .Enumerator, KeyValuePair <TKey, TValue>, TKey, TValue>(new ValueWrapper <TKey, TValue>(source), item => item.Key, item => item.Value, comparer);
Exemple #4
0
 public static Dictionary <TKey2, TKey> ToDictionary <TKey, TValue, TKey2>(this Dictionary <TKey, TValue> .KeyCollection source, NullableSelector <TKey, TKey2> keySelector, IEqualityComparer <TKey2>?comparer = default)
 => ValueReadOnlyCollectionExtensions.ToDictionary <ValueWrapper <TKey, TValue>, Dictionary <TKey, TValue> .KeyCollection.Enumerator, TKey, TKey2>(new ValueWrapper <TKey, TValue>(source), keySelector, comparer);
 public static Dictionary <TKey2, TKey> ToDictionary <TKey, TValue, TKey2>(this SortedDictionary <TKey, TValue> .KeyCollection source, NullableSelector <TKey, TKey2> keySelector)
 => ValueReadOnlyCollectionExtensions.ToDictionary <ValueWrapper <TKey, TValue>, SortedDictionary <TKey, TValue> .KeyCollection.Enumerator, TKey, TKey2>(new ValueWrapper <TKey, TValue>(source), keySelector);
Exemple #6
0
 public static Dictionary <TKey, TElement> ToDictionary <TSource, TKey, TElement>(this ImmutableHashSet <TSource> source, NullableSelector <TSource, TKey> keySelector, NullableSelector <TSource, TElement> elementSelector, IEqualityComparer <TKey>?comparer)
 => ValueReadOnlyCollectionExtensions.ToDictionary <ValueWrapper <TSource>, ImmutableHashSet <TSource> .Enumerator, TSource, TKey, TElement>(new ValueWrapper <TSource>(source), keySelector, elementSelector, comparer);
 public static Dictionary <TKey2, TValue> ToDictionary <TKey, TValue, TKey2>(this SortedDictionary <TKey, TValue> .ValueCollection source, Selector <TValue, TKey2> keySelector, IEqualityComparer <TKey2>?comparer = default)
     where TKey : notnull
     where TKey2 : notnull
 => ValueReadOnlyCollectionExtensions.ToDictionary <ValueWrapper <TKey, TValue>, SortedDictionary <TKey, TValue> .ValueCollection.Enumerator, TValue, TKey2>(new ValueWrapper <TKey, TValue>(source), keySelector, comparer);
Exemple #8
0
 public static Dictionary <TKey, TSource> ToDictionary <TSource, TKey>(this ImmutableHashSet <TSource> source, NullableSelector <TSource, TKey> keySelector)
 => ValueReadOnlyCollectionExtensions.ToDictionary <ValueWrapper <TSource>, ImmutableHashSet <TSource> .Enumerator, TSource, TKey>(new ValueWrapper <TSource>(source), keySelector);
Exemple #9
0
 public static Dictionary <TKey2, TElement> ToDictionary <TKey, TValue, TKey2, TElement>(this SortedDictionary <TKey, TValue> source, NullableSelector <KeyValuePair <TKey, TValue>, TKey2> keySelector, NullableSelector <KeyValuePair <TKey, TValue>, TElement> elementSelector)
 => ValueReadOnlyCollectionExtensions.ToDictionary <ValueWrapper <TKey, TValue>, SortedDictionary <TKey, TValue> .Enumerator, KeyValuePair <TKey, TValue>, TKey2, TElement>(new ValueWrapper <TKey, TValue>(source), keySelector, elementSelector);
Exemple #10
0
 public static Dictionary <TKey2, KeyValuePair <TKey, TValue> > ToDictionary <TKey, TValue, TKey2>(this SortedDictionary <TKey, TValue> source, NullableSelector <KeyValuePair <TKey, TValue>, TKey2> keySelector, IEqualityComparer <TKey2>?comparer)
 => ValueReadOnlyCollectionExtensions.ToDictionary <ValueWrapper <TKey, TValue>, SortedDictionary <TKey, TValue> .Enumerator, KeyValuePair <TKey, TValue>, TKey2>(new ValueWrapper <TKey, TValue>(source), keySelector, comparer);
Exemple #11
0
 public static Dictionary <TKey, TValue> ToDictionary <TKey, TValue>(this SortedDictionary <TKey, TValue> source, IEqualityComparer <TKey>?comparer)
 => ValueReadOnlyCollectionExtensions.ToDictionary <ValueWrapper <TKey, TValue>, SortedDictionary <TKey, TValue> .Enumerator, KeyValuePair <TKey, TValue>, TKey, TValue>(new ValueWrapper <TKey, TValue>(source), item => item.Key, item => item.Value, comparer);
Exemple #12
0
 public static Dictionary <TKey, TSource> ToDictionary <TSource, TKey>(this ImmutableHashSet <TSource> source, Selector <TSource, TKey> keySelector, IEqualityComparer <TKey>?comparer = default)
     where TKey : notnull
 => ValueReadOnlyCollectionExtensions.ToDictionary <ValueWrapper <TSource>, ImmutableHashSet <TSource> .Enumerator, TSource, TKey>(new ValueWrapper <TSource>(source), keySelector, comparer);