예제 #1
0
		static void Main(string[] args)
		{
			GreetingDelegate1 obj1 = new GreetingDelegate1(Greetings);//Instantiating a delegate

			string str = obj1.Invoke("HDFC");//invoking a method 
			Console.WriteLine(str);
			Console.ReadLine();

		}
예제 #2
0
 private static void GreetPeople(string name, GreetingDelegate1 MakeGreeting)
 {
     MakeGreeting(name);
 }