© Vaskaran Sarcar 2020
V. SarcarGetting Started with Advanced C#https://doi.org/10.1007/978-1-4842-5934-4_2

2. Events

Vaskaran Sarcar1  
(1)
Kolkata, West Bengal, India
 

The support for events is considered one of the most exciting features in C#.

The following are some fundamental characteristics of events. I suggest that you go through these points multiple times before you code with events.
  • The backbone of events are delegates, so it’s essential to learn delegates before you use events.

  • When using events, one segment of code can send a notification to another segment of code.

  • Events are commonly used in GUI applications. For example, when you click a button or select a radio button, you may notice some interesting changes in the UI layout.

  • In a publisher-subscriber ...

Get Getting Started with Advanced C#: Upgrade Your Programming Skills now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.