diff --git a/MoreLinq/CompatibilitySuppressions.xml b/MoreLinq/CompatibilitySuppressions.xml index e42c8f90a..b7cc8ddaf 100644 --- a/MoreLinq/CompatibilitySuppressions.xml +++ b/MoreLinq/CompatibilitySuppressions.xml @@ -1,4 +1,4 @@ - + diff --git a/MoreLinq/Extensions.g.cs b/MoreLinq/Extensions.g.cs index 5a2c9e528..b7fcf096d 100644 --- a/MoreLinq/Extensions.g.cs +++ b/MoreLinq/Extensions.g.cs @@ -6637,8 +6637,7 @@ public static Dictionary ToDictionary(this IEnumerab /// mapped to their keys. /// - public static Dictionary ToDictionary( - this IEnumerable<(TKey Key, TValue Value)> source, + public static Dictionary ToDictionary(this IEnumerable<(TKey Key, TValue Value)> source, IEqualityComparer? comparer) where TKey : notnull => MoreEnumerable.ToDictionary(source, comparer); @@ -6657,8 +6656,7 @@ public static Dictionary ToDictionary( /// mapped to their keys. /// - public static Dictionary ToDictionary( - this IEnumerable> source, + public static Dictionary ToDictionary(this IEnumerable> source, IEqualityComparer? comparer) where TKey : notnull => MoreEnumerable.ToDictionary(source, comparer); diff --git a/MoreLinq/ToDictionary.cs b/MoreLinq/ToDictionary.cs index 73367e838..a0e6d87d1 100644 --- a/MoreLinq/ToDictionary.cs +++ b/MoreLinq/ToDictionary.cs @@ -59,13 +59,11 @@ public static Dictionary ToDictionary(IEnumerable #if !NET8_0_OR_GREATER - public static Dictionary ToDictionary( - this IEnumerable> source, + public static Dictionary ToDictionary(this IEnumerable> source, IEqualityComparer? comparer) where TKey : notnull #else - public static Dictionary ToDictionary( - IEnumerable> source, + public static Dictionary ToDictionary(IEnumerable> source, IEqualityComparer? comparer) where TKey : notnull #endif @@ -111,13 +109,11 @@ public static Dictionary ToDictionary(IEnumerable<(T /// #if !NET8_0_OR_GREATER - public static Dictionary ToDictionary( - this IEnumerable<(TKey Key, TValue Value)> source, + public static Dictionary ToDictionary(this IEnumerable<(TKey Key, TValue Value)> source, IEqualityComparer? comparer) where TKey : notnull #else - public static Dictionary ToDictionary( - IEnumerable<(TKey Key, TValue Value)> source, + public static Dictionary ToDictionary(IEnumerable<(TKey Key, TValue Value)> source, IEqualityComparer? comparer) where TKey : notnull #endif