C Sharp Programming/Keywords/add

The and  keywords allow you to execute code whenever a delegate is added or removed from an event. Its usage is similar to the and  keywords with properties:

The code in the block will be executed when a delegate is added to the event. Similarly, the code in the block will be executed when a delegate is removed from the event.

/Keywords