Skip to content

Commit

Permalink
return IComparer
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasteles committed Jan 5, 2024
1 parent 05e42fe commit 26f68e4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/LambdaComparer.cs
Expand Up @@ -23,11 +23,11 @@ public static class LambdaComparison

public static class LambdaComparer
{
public static Comparer<TValue> Create<TValue>(
public static IComparer<TValue> Create<TValue>(
Func<TValue, TValue, CompareResult> comparerFunc
) => Comparer<TValue>.Create((x, y) => (int)comparerFunc(x, y));

public static Comparer<TSource> Create<TSource, TKey>(
public static IComparer<TSource> Create<TSource, TKey>(
Func<TSource, TKey> key,
Comparer<TKey>? keyComparer = null
)
Expand Down

0 comments on commit 26f68e4

Please sign in to comment.