Click or drag to resize

EventExtensionMethodsRaiseEvent Method (PropertyChangedEventHandler, Object, String)

Raises the PropertyChanged event, if the handler isn't null, otherwise a no-op

Namespace:  SD.Tools.BCLExtensions.SystemRelated
Assembly:  SD.Tools.BCLExtensions (in SD.Tools.BCLExtensions.dll) Version: 1.2.0
Syntax
public static void RaiseEvent(
	this PropertyChangedEventHandler handler,
	Object sender,
	string propertyName
)

Parameters

handler
Type: System.ComponentModelPropertyChangedEventHandler
The handler.
sender
Type: SystemObject
The sender.
propertyName
Type: SystemString
Name of the property.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type PropertyChangedEventHandler. 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