Little known C# Feature add/remove handlers for events

I was caught out by this recently in some code that I was modifying.
C# events have the ability to add event handlers that are triggered when an event handler is attached to an event.
This allows the class to react to external interest.  These are not frequently used and can be a little obscure.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s