You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
OtisInf edited this page Feb 19, 2013
·
1 revision
The following extension methods are defined for event related types. They save you from the burden to first test whether the eventhandler is null before raising the event. All RaiseEvent methods are no-ops if the event handler specified is null.
EventHandler specific
void RaiseEvent(object sender)
Raises the event which is represented by the event handler specified with default, empty arguments, if the event handler specified isn't null.
EventHandler<T> specific
void RaiseEvent<T>(object sender, T arguments)
Raises the event which is represented by the event handler specified with the arguments specified, if the event handler specified isn't null.
PropertyChangedHandler specific
void RaiseEvent(object sender, string propertyName)
Raises the PropertyChanged event which is represented by the event handler specified for the property with the name specified in propertyName, if the event handler specified isn't null.