Skip to content

Commit

Permalink
Revert unrelated formatting changes
Browse files Browse the repository at this point in the history
  • Loading branch information
atifaziz committed Nov 20, 2023
1 parent 985fa55 commit c9144e4
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 13 deletions.
2 changes: 1 addition & 1 deletion MoreLinq/CompatibilitySuppressions.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<!-- https://learn.microsoft.com/en-us/dotnet/fundamentals/package-validation/diagnostic-ids -->
<Suppressions xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<Suppression>
Expand Down
6 changes: 2 additions & 4 deletions MoreLinq/Extensions.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6637,8 +6637,7 @@ public static Dictionary<TKey, TValue> ToDictionary<TKey, TValue>(this IEnumerab
/// mapped to their keys.
/// </returns>

public static Dictionary<TKey, TValue> ToDictionary<TKey, TValue>(
this IEnumerable<(TKey Key, TValue Value)> source,
public static Dictionary<TKey, TValue> ToDictionary<TKey, TValue>(this IEnumerable<(TKey Key, TValue Value)> source,
IEqualityComparer<TKey>? comparer)
where TKey : notnull
=> MoreEnumerable.ToDictionary(source, comparer);
Expand All @@ -6657,8 +6656,7 @@ public static Dictionary<TKey, TValue> ToDictionary<TKey, TValue>(
/// mapped to their keys.
/// </returns>

public static Dictionary<TKey, TValue> ToDictionary<TKey, TValue>(
this IEnumerable<KeyValuePair<TKey, TValue>> source,
public static Dictionary<TKey, TValue> ToDictionary<TKey, TValue>(this IEnumerable<KeyValuePair<TKey, TValue>> source,
IEqualityComparer<TKey>? comparer)
where TKey : notnull
=> MoreEnumerable.ToDictionary(source, comparer);
Expand Down
12 changes: 4 additions & 8 deletions MoreLinq/ToDictionary.cs
Original file line number Diff line number Diff line change
Expand Up @@ -59,13 +59,11 @@ public static Dictionary<TKey, TValue> ToDictionary<TKey, TValue>(IEnumerable<Ke
/// </returns>

#if !NET8_0_OR_GREATER
public static Dictionary<TKey, TValue> ToDictionary<TKey, TValue>(
this IEnumerable<KeyValuePair<TKey, TValue>> source,
public static Dictionary<TKey, TValue> ToDictionary<TKey, TValue>(this IEnumerable<KeyValuePair<TKey, TValue>> source,
IEqualityComparer<TKey>? comparer)
where TKey : notnull
#else
public static Dictionary<TKey, TValue> ToDictionary<TKey, TValue>(
IEnumerable<KeyValuePair<TKey, TValue>> source,
public static Dictionary<TKey, TValue> ToDictionary<TKey, TValue>(IEnumerable<KeyValuePair<TKey, TValue>> source,
IEqualityComparer<TKey>? comparer)
where TKey : notnull
#endif
Expand Down Expand Up @@ -111,13 +109,11 @@ public static Dictionary<TKey, TValue> ToDictionary<TKey, TValue>(IEnumerable<(T
/// </returns>

#if !NET8_0_OR_GREATER
public static Dictionary<TKey, TValue> ToDictionary<TKey, TValue>(
this IEnumerable<(TKey Key, TValue Value)> source,
public static Dictionary<TKey, TValue> ToDictionary<TKey, TValue>(this IEnumerable<(TKey Key, TValue Value)> source,
IEqualityComparer<TKey>? comparer)
where TKey : notnull
#else
public static Dictionary<TKey, TValue> ToDictionary<TKey, TValue>(
IEnumerable<(TKey Key, TValue Value)> source,
public static Dictionary<TKey, TValue> ToDictionary<TKey, TValue>(IEnumerable<(TKey Key, TValue Value)> source,
IEqualityComparer<TKey>? comparer)
where TKey : notnull
#endif
Expand Down

0 comments on commit c9144e4

Please sign in to comment.