From a0a8efb854d59d978d677d7a427e51392c9eb8e2 Mon Sep 17 00:00:00 2001 From: Kyle Ratti Date: Fri, 23 Dec 2022 13:50:06 -0500 Subject: [PATCH] fix: handle IEnumerable.Choose correctly (part 2) --- Base/Extensions/EnumerableExtensions.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Base/Extensions/EnumerableExtensions.cs b/Base/Extensions/EnumerableExtensions.cs index 8481e77..5cac99c 100644 --- a/Base/Extensions/EnumerableExtensions.cs +++ b/Base/Extensions/EnumerableExtensions.cs @@ -13,7 +13,7 @@ public static class EnumerableExtensions !isConditionValid ? enumerable : enumerable.Where(pred); public static IEnumerable Choose(this IEnumerable enumerable, Func mapper) - where TInput : class? => + where TOutput : class? => enumerable .Select(mapper) .Where(x => x is not null)