Introduction to Events and Event- Handlers

Introduction

Our physical world is surrounded by events e.g. Door Opened, Engine Started, Plane landed, etc., and we see events in the virtual world as well e.g. email received, friend-request sent, post liked etc. This is a very common concept, All popular programming languages support this, and in this post we will see that how we can use events in .NET applications.

Similar to Events, which are raised from users on the UI (e.g. click Save button), the objects in our code can also raise events and then those events can be processed by some other objects. For demo purpose, I will be using .NET but you can use any programming language for the implementation.