You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be nice to have a utility method for a left join that merges the lists using an expression. Instead of returning an enumerable of items that matches the predicate, it should also be possible to return only the first match.
The following pattern often occurs in our solution:
It would be nice to have a utility method for a left join that merges the lists using an expression. Instead of returning an enumerable of items that matches the predicate, it should also be possible to return only the first match.
The following pattern often occurs in our solution:
This is the current production code, which achieves the same thing:
This could be simplified by the utility method. In the end, it would look something like this:
Items without a match should proceed as usual so we can skip the null reference check.
The text was updated successfully, but these errors were encountered: