11 Replies
I'd like to have only one linq query
.Select()
?but I can't write if statement in select
Sure you can
this is a little bit bad because I should return smth from select
Yeah, you would need an
else
And then .Where()
to filter out the empty valuesbut actually I don't want to return smth on else
.Aggregate()
could also work I guesshm
maybe you can filter something first with
.Where()
to simplify the if in a more linear way
but even without it simply returning null as Z says would be goodWas this issue resolved? If so, run
/close
- otherwise I will mark this as stale and this post will be archived until there is new activity.