|
ObjectChangeTrackingExtensionsCurrentPropertyValueT, TReturn Method (T, ExpressionFuncT, TReturn)
|
Gets the last value of given selected property.
Namespace:
TrackerDog
Assembly:
TrackerDog (in TrackerDog.dll) Version: 2.2.1.0 (2.2.1.0)
Syntax public static TReturn CurrentPropertyValue<T, TReturn>(
this T some,
Expression<Func<T, TReturn>> propertySelector
)
<ExtensionAttribute>
Public Shared Function CurrentPropertyValue(Of T, TReturn) (
some As T,
propertySelector As Expression(Of Func(Of T, TReturn))
) As TReturn
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 last value
Return Value
Type:
TReturnThe last value of the property
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 var currentValue = some.CurrentPropertyValue(o => o.Text);
See Also