Skip to content

Instantly share code, notes, and snippets.

@IntegerMan
Created October 23, 2019 04:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save IntegerMan/401f05b52fd2e78640652bbb5d9bff5b to your computer and use it in GitHub Desktop.
Save IntegerMan/401f05b52fd2e78640652bbb5d9bff5b to your computer and use it in GitHub Desktop.
internal abstract class NotifyPropertyChangedBase : INotifyPropertyChanged
{
public event PropertyChangedEventHandler PropertyChanged;
protected virtual void OnPropertyChanged([CallerMemberName] string propertyName = null) =>
PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment