Created
October 16, 2019 01:47
-
-
Save IntegerMan/fc59a9e3a09fa15581c0d712b9080ee8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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