Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
INotifyPropertyChanged Implementation
public event PropertyChangedEventHandler PropertyChanged;
protected virtual void NotifyPropertyChanged<T>(Expression<Func<T>> propertyEvaluator)
var lambda = propertyEvaluator as LambdaExpression;
var member = lambda.Body as MemberExpression;
var handler = PropertyChanged;
if (handler != null)
handler(this, new PropertyChangedEventArgs(member.Member.Name));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.