Snippet: public event

property value
IDE VS Code
Language C#
Title public event
Shortcut et_EventHandler
Description public event declaration

Placeholders

Identifier Tooltip Default Value
name Event name EventName

Code

public event EventHandler EventName;

protected virtual void OnEventName(EventArgs e) {
	EventHandler handler = EventName;
	if (handler != null) {
		handler(this, e);
	}
}