KGy SOFT

PropertyChangedEventArgsExtensionsTryGetOldPropertyValue Method

KGy SOFT Core Libraries Help
If the specified event args is a PropertyChangedExtendedEventArgs instance, then gets the property value before the change.

Namespace:  KGySoft.ComponentModel
Assembly:  KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 5.0.0
Syntax

public static bool TryGetOldPropertyValue(
	this PropertyChangedEventArgs args,
	out Object oldValue
)

Parameters

args
Type: System.ComponentModelPropertyChangedEventArgs
The PropertyChangedEventArgs instance containing the event data.
oldValue
Type: SystemObject
If the specified event args is a PropertyChangedExtendedEventArgs instance, then the property value before the change; otherwise, .

Return Value

Type: Boolean
 if the specified event args is a PropertyChangedExtendedEventArgs instance; otherwise, .

Usage Note

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

Reference