Skip to content

Instantly share code, notes, and snippets.

@IntegerMan
Created October 16, 2019 01:47
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/fc59a9e3a09fa15581c0d712b9080ee8 to your computer and use it in GitHub Desktop.
Save IntegerMan/fc59a9e3a09fa15581c0d712b9080ee8 to your computer and use it in GitHub Desktop.
private bool _myVal;
public bool MyProp {
get => _myVal;
set => {
if (_myVal != value) {
_myVal = value;
OnPropertyChanged();
}
}
}
public void OnPropertyChanged([CallerMemberName] string propName = "")
=> NotifyPropertyChanged?.Invoke(propName);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment