...

/

Local Functions

Local Functions

Create methods within methods.

We'll cover the following...

C# 7.0. and later includes local functions. These are private methods that we can define within other methods.

Local functions aid code-readability. If we need several methods that are called by only one method, then it would be much clearer for other developers if we make these methods local to ...

A method that contains other methods