Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public string Name
- {
- get { return _name; }
- set { IsDirty = true; _name = value; }
- }
- [MakesDirty]
- public string Name { get; set; }
- set
- {
- _name = value;
- NotifyPropertyChanged("Name");
- }
- private void SetValue<T>(ref T backingField, T value)
- {
- if (backingField != value)
- {
- backingField = value;
- IsDirty = true;
- }
- }
- public string Name
- {
- get
- {
- return _name;
- }
- set
- {
- SetValue(ref _name, value);
- }
- }
Add Comment
Please, Sign In to add comment