Click or drag to resize

EventExtensionMethodsRaiseEventT Method (EventHandlerT, 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: SystemEventHandlerT
The handler of the event to raise.
sender
Type: SystemObject
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 EventHandlerT. 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