c# local functions within location functions code example
Example: how to make a function inside a function c#
public static void Main(string[] arg) {
Console.WriteLine("hello");
void World() {
Console.WriteLine("world")
}
world();
}
/*
output:
hello
world
*/