Class EventHandlerEx
Class containing some extension methods for System.EventHandler and System.EventHandler<TEventArgs>.
Inheritance
System.Object
EventHandlerEx
Inherited Members
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:Extend
Assembly:Extend.dll
Syntax
public static class EventHandlerEx
Methods
| Improve this Doc View SourceRaise(EventHandler, Object, EventArgs)
Raises the given System.EventHandler with senderas sender and eas argument.
Declaration
public static EventHandler Raise(this EventHandler eventHandler, object sender, EventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.EventHandler | eventHandler | The System.EventHandler to raise. |
System.Object | sender | The sender of the event. |
System.EventArgs | e | The event arguments. |
Returns
Type | Description |
---|---|
System.EventHandler | Returns the given event handler. |
Raise<T>(EventHandler<T>, Object, T)
Raises the given System.EventHandler with senderas sender and eas argument.
Declaration
public static EventHandler<T> Raise<T>(this EventHandler<T> eventHandler, object sender, T e)where T : EventArgs
Parameters
Type | Name | Description |
---|---|---|
System.EventHandler<TEventArgs><T> | eventHandler | The System.EventHandler to raise. |
System.Object | sender | The sender of the event. |
T | e | The event arguments. |
Returns
Type | Description |
---|---|
System.EventHandler<TEventArgs><T> | Returns the given event handler. |
Type Parameters
Name | Description |
---|---|
T | The type of the event arguments. |