Skip to content

Instantly share code, notes, and snippets.

@IntegerMan

IntegerMan/NPC.cs

Created Oct 16, 2019
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
You can’t perform that action at this time.