From 26f68e475f7ddb826651e6480f3fccd4b2ae311a Mon Sep 17 00:00:00 2001 From: Lucas Teles Date: Fri, 5 Jan 2024 15:26:16 -0300 Subject: [PATCH] return IComparer --- src/LambdaComparer.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/LambdaComparer.cs b/src/LambdaComparer.cs index 448971f..37a57eb 100644 --- a/src/LambdaComparer.cs +++ b/src/LambdaComparer.cs @@ -23,11 +23,11 @@ public static Comparison Create( public static class LambdaComparer { - public static Comparer Create( + public static IComparer Create( Func comparerFunc ) => Comparer.Create((x, y) => (int)comparerFunc(x, y)); - public static Comparer Create( + public static IComparer Create( Func key, Comparer? keyComparer = null )