Click or drag to resize

EventExtensionMethods.RaiseEvent<T> Method (EventHandler<T>, Object, T)

Raises the event which is represented by the handler specified.

Namespace:  SD.Tools.BCLExtensions.SystemRelated
Assembly:  SD.Tools.BCLExtensions (in SD.Tools.BCLExtensions.dll) Version: 1.2.0
Syntax
public static void RaiseEvent<T>(
	this EventHandler<T> handler,
	Object sender,
	T arguments
)
where T : EventArgs

Parameters

handler
Type: System.EventHandler<T>
The handler of the event to raise.
sender
Type: System.Object
The sender of the event.
arguments
Type: T
The arguments to pass to the handler.

Type Parameters

T
type of the event args

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type EventHandler<T>. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also