News

Trick #2: Pass in named functions to .then. You don’t always have to use inline anonymous functions as arguments to .then.You can easily assign a function to a variable and pass the reference to ...
Although anonymous functions have many benefits, they are not cheap. Avoiding unnecessary allocations matters, and this is why static anonymous functions were introduced in C# 9.