What's new in VS2017 and C# 7.0? - Local Functions

added by DotNetKicks
4/4/2017 12:46:41 PM

2 Kicks, 196 Views

Local Functions is all about declaring functions within functions. See them as normal functions with a more restrictive scope than private. In C# 6.0, if you needed to declare a method within a method to be used within that method exclusively, you created a Func or Action.