public void Notify <T>(INotifyRaisePropertyChanged obj, Expression <Func <T> > property) { if (!_silent) { _serviceNotify.Add(Tuple.Create(obj, ((MemberExpression)property.Body).Member.Name)); } }
public void Update <T>(INotifyRaisePropertyChanged obj, ref T field, T newValue, Expression <Func <T> > property) { if ((field == null && newValue != null) || (field != null && !field.Equals(newValue))) { field = newValue; Notify(obj, property); } }