fix: handle IEnumerable.Choose<TRefType> correctly (part 2)
This commit is contained in:
parent
eafcde134b
commit
a0a8efb854
|
@ -13,7 +13,7 @@ public static class EnumerableExtensions
|
|||
!isConditionValid ? enumerable : enumerable.Where(pred);
|
||||
|
||||
public static IEnumerable<TOutput> Choose<TInput, TOutput>(this IEnumerable<TInput> enumerable, Func<TInput, TOutput?> mapper)
|
||||
where TInput : class? =>
|
||||
where TOutput : class? =>
|
||||
enumerable
|
||||
.Select(mapper)
|
||||
.Where(x => x is not null)
|
||||
|
|
Loading…
Reference in New Issue
Block a user