|
ObjectChangeTrackingExtensionsPropertyHasChangedT Method (T, ExpressionFuncT, Object)
|
Determines if a given property by selector has changed since its tracking was started.
Namespace:
TrackerDog
Assembly:
TrackerDog (in TrackerDog.dll) Version: 2.2.1.0 (2.2.1.0)
Syntax public static bool PropertyHasChanged<T>(
this T some,
Expression<Func<T, Object>> propertySelector
)
<ExtensionAttribute>
Public Shared Function PropertyHasChanged(Of T) (
some As T,
propertySelector As Expression(Of Func(Of T, Object))
) As Boolean
Parameters
- some
- Type: T
The change-tracked object - propertySelector
- Type: System.Linq.ExpressionsExpressionFuncT, Object
The property selector
Type Parameters
- T
- The type of the object owning the whole property
Return Value
Type:
Booleantrue if it has changed, false if it doesn't changed.
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).
See Also