2.
using System; public delegate void TestDelegate(); class Test { public static void Display1() { Console.WriteLine("This is the first method"); } public static void Display2() { Console.WriteLine("This is the second method"); } static void Main() { TestDelegate t1 = new TestDelegate(Display1); TestDelegate t2 = new TestDelegate(Display2); t1 = t1 + t2; // Make t1 a multi-cast delegate t1(); //Invoke delegate Console.ReadLine(); } }
View Description
It is a multicast Delegator so it will call both methods.