static void Main(string[] args) { strdel del = Length;//3(Here del has address of func) Run(del); //Registering Call Back //5//the address is sent to run method so that it invokes the delegate Console.WriteLine("===="); //6 }
public static void Run(strdel del)//4 { del("Hello"); //del.Invoke("Hello"); //Can also be invoked this way }