Пример #1
0
 private void OnPropertyChanged(Expression <Func <StatusService, object> > getPropertyExpression)
 {
     EventHelper.Raise(ref PropertyChanged, this,
                       new PropertyChangedEventArgs(PropertyHelper.GetPropertyName(getPropertyExpression)));
 }
Пример #2
0
        public static string GetDisplayName <T>(Expression <Func <T, object> > getPropertyExpression)
        {
            string property = PropertyHelper.GetPropertyName(getPropertyExpression);

            return(GetDisplayName(typeof(T), property));
        }