using System;
public delegate double DelegateMultiplier(int x, int y);
public class Program
{
public static void Main()
// create the delegate instance.
var delegateObj = new DelegateMultiplier(func);
int a = 15;
int b = 22;
// use delegate for processing
var result = delegateObj(a,b);
Console.WriteLine("The product is {0}", result);
}
static double func(int a, int b)
return a*b;