Here is source code of the C# Program to Declare and Instantiate Delegates. The C# program is successfully compiled and executed with Microsoft Visual Studio. The program output is also shown below.
* C# Program to Declare and Instantiate Delegates
delegate void dele1();
public class Delegateintro
static void Main()
dele1 del = new dele1(Write);
static void Write()
Console.WriteLine("Calling Write ");
Here is the output of the C# Program:
Sanfoundry Global Education & Learning Series – 1000 C# Programs.