when to use delegates in c# code example
Example 1: what are delegates and how to use them c#
public delegate void MyDelegate(string text);
Example 2: what are delegates and how to use them c#
MyDelegate d = new MyDelegate(ShowText);
public delegate void MyDelegate(string text);
MyDelegate d = new MyDelegate(ShowText);