local method c# 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
*/