IDG Contributor Network: C# 7 in depth : Exploring local functions

The support for local functions is an excellent new feature that has been introduced in C# 7. Note that you can define local functions inside any method, the constructor of a class or inside a property -- both getter and setter. When it's compiled by the C# compiler, a local function gets transformed into a private method.When developing applications, you might often need to create methods that aren't reused -- you need them just for modularity. You might not want your methods to be long as maintaining such methods would become a nightmare over time. However, you might end up... [Read more...]
Published on March 20, 2017
4 days ago