Click or drag to resize

PropertySupportGetEventArgsT Method

Gets the PropertyChangedEventArgs for the specified property.

Namespace:  TomsToolbox.Essentials
Assembly:  TomsToolbox.Essentials (in TomsToolbox.Essentials.dll)
Syntax
public static PropertyChangedEventArgs GetEventArgs<T>(
	Expression<Func<T>> propertyExpression
)

Parameters

propertyExpression
Type: System.Linq.ExpressionsExpressionFuncT
The property expression (e.g. p => p.PropertyName) to extract the property name from.

Type Parameters

T
The object type containing the property specified in the expression.

Return Value

Type: PropertyChangedEventArgs
The event arguments to pass to PropertyChanged.
Exceptions
ExceptionCondition
ArgumentExceptionThrown when the expression is:
Not a MemberExpression
The MemberExpression does not represent a property.
See Also