PropertyChangedEventArgsExtensionsTryGetOldPropertyValue Method

If the specified event args is a PropertyChangedExtendedEventArgs instance, then gets the property value before the change.

Definition

Namespace: KGySoft.ComponentModel
Assembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 8.2.0
C#
public static bool TryGetOldPropertyValue(
	this PropertyChangedEventArgs args,
	out Object?? oldValue
)

Parameters

args  PropertyChangedEventArgs
The PropertyChangedEventArgs instance containing the event data.
oldValue  Object
If the specified event args is a PropertyChangedExtendedEventArgs instance, then the property value before the change; otherwise, .

Return Value

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