Ejemplo n.º 1
0
        protected override object Convert(object value, Type targetType, object parameter)
        {
            if (value is IEnumerable <TimeAdjustmentStrategy> timeAdjustmentStrategies)
            {
                return(timeAdjustmentStrategies.Select(x => _timeAdjustmentProvider.GetTimeAdjustment(x)));
            }

            return(value);
        }
        protected override object Convert(object value, Type targetType, object parameter)
        {
            if (value is TimeAdjustmentStrategy strategy)
            {
                return(_timeAdjustmentProvider.GetTimeAdjustment(strategy));
            }

            return(value);
        }