using System;
class Program
{
// Define a delegate type for functions that return void
delegate void FuncDelegate();
static void Control(FuncDelegate f) {
f(); // Call the function
}
static void Say() {
Console.WriteLine("abcd");
}
static void Main()
{
Control(Say); // Pass method reference
}
}
/*
run:
abcd
*/