Simple Delegate Example.

Rajesh_Kumar
Posted by Rajesh_Kumar under C# category on | Points: 40 | Views : 493
public delegate void func_del();

public static void call_del()
{
MessageBox.Show("Calling Delegate");
}

//Initialize Delegate Object
func_del obj_del = new func_del(call_del);

//Now invoke delegate
obj_del();

Comments or Responses

Login to post response