What is a method that’s inside another method called?

It’s a feature of c# called local functions, introduced in c# 7:

Many designs for classes include methods that are called from only one location. These additional private methods keep each method small and focused.
Local functions enable you to declare methods inside the context of another method. Local functions make it easier for readers of the class to see that the local method is only called from the context in which it is declared.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)