How to instantiate a delegate?
Rangoli
Declare a Delegate as
public void myDelegate(int iVal);
public class myClass
{
//Constructor
main()
myDelegate objDel = new myDelegate(this.DelImplementation);
objDel(5);
}
public void DelImplementation(int val)
MessageBox.Show("Method parameter value: "+val.ToString());