In the C#, Multicast Delegate is a delegate that holds the references of more than one function. When you invoke the multicast delegate, then all the functions.
What is Multicast Delegate in C#?
A Multicast Delegate in C# is a delegate that holds the references of more than one function. When we invoke the multicast delegate, then all the functions which are referenced by the delegate are going to be invoked. If you want to call multiple methods using a delegate then all the method signatures should be the same.
Multicast Delegate in C# Example
delegate void MultipleDelegate();
static public void Display()
static public void print()
public class MultipleExample
public static void Main()
MultipleDelegate m1 = new MultipleDelegate(DM.Display);
MultipleDelegate m2 = new MultipleDelegate(DM.print);
MultipleDelegate m3 = m1 + m2;
MultipleDelegate m4 = m2 + m1;
MultipleDelegate m5 = m3 - m2;