I have come across this code in MoreLinq, in file Batch.cs (link):
return _(); IEnumerable<TResult> _()
I read up on discards, but nevertheless I cannot make sense of the above code. When I hover above the first _ it says: "Variables captured: resultSelector, collection".
- What do the two
_()represent? - Since we are doing a
return _();, how can the subsequent codeIEnumerable<TResult> _()still be executed?