public string Description {
get { return _description; }
set { _description = value;
NotifyPropertyChanged(“Description”);
}
}
public string Description {
get { return _description; }
set { SetProperty(ref _description, value); }
}
protected virtual bool SetProperty<T>(ref T storage, T value [CallerMemberName] string propertyName = null) {
if (object.Equals((object)storage, (object)value))
return false;
storage = value;
this.NotifyPropertyChanged(propertyName);
return true;
}