Skip to content

Instantly share code, notes, and snippets.

@IntegerMan
Created October 16, 2019 01:47
Embed
What would you like to do?
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