can we use delegate with var fundtion code example
Example 1: what are delegates and how to use them c#
myDelegate d1 = new myDelegate(Method1);myDelegate d2 = new myDelegate(Method2);myDelegate multicastDelegate = (myDelegate)Delegate.Combine(d1, d2);multicastDelegate.Invoke();
Example 2: what are delegates and how to use them c#
MyDelegate d = new MyDelegate(ShowText);