- Events help two objects communicate with each other or be notified when required.
- Events help in building loosely-coupled applications which are extensible.
Dopper dopper = new Dopper();
dopper.DopperDopped += delegate (object o, EventArgs e)
Console.WriteLine("Dopper Event Handled");
public event EventHandler<EventArgs> DopperDopped;
public void DoDope()
protected virtual void CallRaiser()
if (DopperDopped != null)
I'm a full-stack developer and a software enthusiast who likes to play around with cloud and tech stack out of curiosity. You can connect with me on Medium, Twitter or LinkedIn.