#pragma warning restore HLQ005 // Avoid Single() and SingleOrDefault()

        public static ValueEnumerableExtensions.DistinctEnumerable <ValueWrapper <TKey, TValue>, Dictionary <TKey, TValue> .Enumerator, KeyValuePair <TKey, TValue> > Distinct <TKey, TValue>(this Dictionary <TKey, TValue> source, IEqualityComparer <KeyValuePair <TKey, TValue> >?comparer = default)
            where TKey : notnull
        => ValueEnumerableExtensions.Distinct <ValueWrapper <TKey, TValue>, Dictionary <TKey, TValue> .Enumerator, KeyValuePair <TKey, TValue> >(new ValueWrapper <TKey, TValue>(source), comparer);
 public static ValueEnumerableExtensions.DistinctEnumerable <ValueWrapper <TSource>, ValueWrapper <TSource> .Enumerator, TSource> Distinct <TSource>(this ImmutableStack <TSource> source, IEqualityComparer <TSource>?comparer = default)
 => ValueEnumerableExtensions.Distinct <ValueWrapper <TSource>, ValueWrapper <TSource> .Enumerator, TSource>(new ValueWrapper <TSource>(source), comparer);
 public static ValueEnumerableExtensions.DistinctEnumerable <ValueWrapper <TKey, TValue>, SortedDictionary <TKey, TValue> .KeyCollection.Enumerator, TKey> Distinct <TKey, TValue>(this SortedDictionary <TKey, TValue> .KeyCollection source, IEqualityComparer <TKey>?comparer = default)
 => ValueEnumerableExtensions.Distinct <ValueWrapper <TKey, TValue>, SortedDictionary <TKey, TValue> .KeyCollection.Enumerator, TKey>(new ValueWrapper <TKey, TValue>(source), comparer);
Beispiel #4
0
 public static ValueEnumerableExtensions.DistinctEnumerable <ValueWrapper <TSource>, ImmutableHashSet <TSource> .Enumerator, TSource> Distinct <TSource>(this ImmutableHashSet <TSource> source, IEqualityComparer <TSource>?comparer = null)
 => ValueEnumerableExtensions.Distinct <ValueWrapper <TSource>, ImmutableHashSet <TSource> .Enumerator, TSource>(new ValueWrapper <TSource>(source), comparer);