Click or drag to resize

ObjectChangeTrackingExtensionsOldPropertyValueT, TReturn Method (T, ExpressionFuncT, TReturn)

Gets the value of given selected property that had when the change-tracked object started to track its changes.

Namespace:  TrackerDog
Assembly:  TrackerDog (in TrackerDog.dll) Version: 2.2.1.0 (2.2.1.0)
Syntax
public static TReturn OldPropertyValue<T, TReturn>(
	this T some,
	Expression<Func<T, TReturn>> propertySelector
)

Parameters

some
Type: T
The change-tracked object
propertySelector
Type: System.Linq.ExpressionsExpressionFuncT, TReturn
The property selector

Type Parameters

T
The type of the change-tracked object
TReturn
The type of the property to gets its unchanged value

Return Value

Type: TReturn
The value of the property when it was started to be tracked

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type . 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).
Examples
C#
var oldValue = some.OldPropertyValue(o => o.Text);
See Also