Local function vs Lambda C# 7.0
This was explained by Mads Torgersen in C# Design Meeting Notes where local functions were first discussed: You want a helper function. You are only using it from within a single function, and it likely uses variables and type parameters that are in scope in that containing function. On the other hand, unlike a lambda … Read more