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);
|
!isConditionValid ? enumerable : enumerable.Where(pred);
|
||||||
|
|
||||||
public static IEnumerable<TOutput> Choose<TInput, TOutput>(this IEnumerable<TInput> enumerable, Func<TInput, TOutput?> mapper)
|
public static IEnumerable<TOutput> Choose<TInput, TOutput>(this IEnumerable<TInput> enumerable, Func<TInput, TOutput?> mapper)
|
||||||
where TInput : class? =>
|
where TOutput : class? =>
|
||||||
enumerable
|
enumerable
|
||||||
.Select(mapper)
|
.Select(mapper)
|
||||||
.Where(x => x is not null)
|
.Where(x => x is not null)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user