KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I've been trying to learn how to use event handlers in C# but I can't figure out what handler(this, e) does in the following code: public event EventHandler ThresholdReached; protected virtual void OnThresholdReached(EventArgs e) { EventHandler handler = ThresholdReached; if (handler != null) { handler(this, e); } } Is it trying to call the event handler method (this) with the event (e)?
Tags (comma-separated)
Save Edits
Cancel