What are events in C#?


  • Events is a way for a class to provide notifications to clients of that class when some interesting things happens to an object.
  • Events are declared using delegates.
  • Events can only be invoked from within the class that declared them.
  • Derived classes can not directly invoke events declared within the base class.
  • To call events in derived class, create a virtual protected invoking method for the event and override it in derived class.
  • An event can be placed in a interface.
  • When implementing the interface, the implementing class must supply a corresponding event in the class.

1 thought on “What are events in C#?

Comments are closed.