Class NotifyPropertyChangedExtensions
Extension method for INotifyPropertyChanged.
Inheritance
System.Object
NotifyPropertyChangedExtensions
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Sartorius.SAF.Extensions
Assembly: Sartorius.SAF.dll
Syntax
public static class NotifyPropertyChangedExtensions
Methods
View SourceGetPropertyName<T>(INotifyPropertyChanged, Expression<Func<T>>)
Gets the name of the given property
.
Declaration
public static string GetPropertyName<T>(this INotifyPropertyChanged instance, Expression<Func<T>> property)
Parameters
Type | Name | Description |
---|---|---|
System.ComponentModel.INotifyPropertyChanged | instance | |
System.Linq.Expressions.Expression<System.Func<T>> | property | The property. |
Returns
Type | Description |
---|---|
System.String | The property name. |
Type Parameters
Name | Description |
---|---|
T | The property type. |
RaisePropertyChanged(INotifyPropertyChanged, String)
Declaration
public static void RaisePropertyChanged(this INotifyPropertyChanged instance, string property)
Parameters
Type | Name | Description |
---|---|---|
System.ComponentModel.INotifyPropertyChanged | instance | |
System.String | property |
RaisePropertyChanged<T>(INotifyPropertyChanged, Expression<Func<T>>)
Declaration
public static void RaisePropertyChanged<T>(this INotifyPropertyChanged instance, Expression<Func<T>> propertyExpression)
Parameters
Type | Name | Description |
---|---|---|
System.ComponentModel.INotifyPropertyChanged | instance | |
System.Linq.Expressions.Expression<System.Func<T>> | propertyExpression |
Type Parameters
Name | Description |
---|---|
T |