Free resources, tools, help, and information for CIOs to project managers. You’ll find what you need for a successful university IT project implementation.
IDG Contributor Network: C# 7 in depth : Exploring local functions
Posted on Written by
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...