Event
noun
say it: “ih-VENT” /ɪˈvɛnt/
In C#, a member that other code subscribes to with += and unsubscribes from with -=, and that its class raises to tell every subscriber something happened.
What is Event in C#?
Event — A member that lets an object notify subscribed code that something happened.
class Door
{
public event EventHandler? Opened;
}
In a sentence
- “The door's Changed event replaced twenty lines of hand-written listener list.”
Level: Freelancer · More C# terms at this level
Updated