static void Main(string[] args) { Program p = new Program(); HowToSayHello InAsiaMethod = p.InAsia; HowToSayHello InAmericaMethod = p.InAmerica; p.PrintMessage(InAsiaMethod); p.PrintMessage(InAmericaMethod); Console.ReadLine(); }
void PrintMessage(HowToSayHello how) { Console.WriteLine(how); }