C Local Function
static void Main(string[] args)
{
int Sum(int x, int y)
{
return x + y;
}
int res = 5 + 2;
Console.WriteLine(res);
}
This is a 5 line code to show how Local method works in C#.