protected void RaisePropertyChanged(params Expression <Func <object> >[] propertyExpressions) { for (int i = 0; i < propertyExpressions.Length; i++) { Expression <Func <object> > propertyExpression = propertyExpressions[i]; OnPropertyChanged(PropertySupport.ExtractPropertyName(propertyExpression)); } }
protected virtual bool SetProperty <T>(ref T storage, T value, Expression <Func <T> > propertyExpression) { string propertyName = PropertySupport.ExtractPropertyName(propertyExpression); return(SetProperty(ref storage, value, propertyName)); }
protected virtual bool Set <T>(Expression <Func <T> > propertyExpression, T value) { string propertyName = PropertySupport.ExtractPropertyName(propertyExpression); return(Set <T>(propertyName, value)); }
protected virtual T Get <T>(Expression <Func <T> > propertyExpression) { string propertyName = PropertySupport.ExtractPropertyName(propertyExpression); return(Get <T>(propertyName)); }
protected void RegisterError <T>(Expression <Func <T> > propertyExpression, object error) { string propertyName = PropertySupport.ExtractPropertyName(propertyExpression); RegisterError(propertyName, error); }
protected object GetError <T>(Expression <Func <T> > propertyExpression) { string propertyName = PropertySupport.ExtractPropertyName(propertyExpression); return(GetError(propertyName)); }