using System;
public delegate int IntDel(int a, int b);
public class Program
{
public static void Main()
IntDel del1 = new IntDel(Add); // Assignment 1
IntDel del2 = Add; // Assignment 2
int c = del1.Invoke(2, 3); // Invocation 1
int d = del2(4, 5); // Invocation 2
Console.WriteLine(c);
Console.WriteLine(d);
}
static int Add(int a, int b)
return a + b;