Skip to content

Commit

Permalink
Missing comparer pass-through on DictionaryExtensions
Browse files Browse the repository at this point in the history
  • Loading branch information
bradwilson committed Sep 25, 2023
1 parent 9ab4ece commit 4a35ce7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/common/DictionaryExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ static class DictionaryExtensions
public static Dictionary<TKey, TValue> ToDictionaryIgnoringDuplicateKeys<TKey, TValue>(this IEnumerable<TValue> values,
Func<TValue, TKey> keySelector,
IEqualityComparer<TKey> comparer = null)
=> ToDictionaryIgnoringDuplicateKeys(values, keySelector, x => x);
=> ToDictionaryIgnoringDuplicateKeys(values, keySelector, x => x, comparer);

public static Dictionary<TKey, TValue> ToDictionaryIgnoringDuplicateKeys<TInput, TKey, TValue>(this IEnumerable<TInput> inputValues,
Func<TInput, TKey> keySelector,
Expand Down

0 comments on commit 4a35ce7

Please sign in to comment.