Method inside a Method in c# 7.0
A new feature was introduced in c# 7.0, in which we can call a local methods to be defines and call within a method. This feature was not in the previous versions. Which is like, defining the call back function just above the method in jquery. The blow is as sample code static void Main(string[] args) { void Display(string str) { Console.WriteLine(str); } Display("Hello world....") Console.ReadKey(); }