Class EventHandlerExtensions
Provides extension methods for delegates
Inheritance
System.Object
EventHandlerExtensions
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Sartorius.SAF.Extensions
Assembly: Sartorius.SAF.dll
Syntax
public static class EventHandlerExtensions
Methods
View SourceRaise(EventHandler, Object, EventArgs)
Raises the specified handler if it is not null
.
Declaration
public static void Raise(this EventHandler handler, object sender, EventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.EventHandler | handler | The handler. |
System.Object | sender | The sender. |
System.EventArgs | e | The System.EventArgs instance containing the event data. |
Raise<T>(EventHandler<T>, Object, T)
Raises the specified handler if it is not null
.
Declaration
public static void Raise<T>(this EventHandler<T> handler, object sender, T e)
Parameters
Type | Name | Description |
---|---|---|
System.EventHandler<T> | handler | The handler. |
System.Object | sender | The sender. |
T | e | The e. |
Type Parameters
Name | Description |
---|---|
T |