Created
June 21, 2019 10:36
-
-
Save runceel/aec390766555f3374bf5710eccb0da33 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
public class SomeViewModel : INotifyPropertyChanged | |
{ | |
public event PropertyChangedEventHandler PropertyChanged; | |
private string _message; | |
public string Message | |
{ | |
get { return _message; } | |
set | |
{ | |
if (_message == value) { return; } | |
_message = value; | |
PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(nameof(Message)); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment