public virtual object ConvertBack(object value, Type targetType, object parameter, string language) { // note - Language ignored here! var toReturn = _wrapped.ConvertBack(value, targetType, parameter, CultureInfo.CurrentUICulture); return(MapIfSpecialValue(toReturn)); }
public override void SetValue(IEnumerable <IMvxSourceStep> steps, object value) { var sourceStep = steps.First(); var parameter = GetParameterValue(steps); if (_valueConverter == null) { // null value converter always fails return; } var converted = _valueConverter.ConvertBack(value, sourceStep.SourceType, parameter, CultureInfo.CurrentUICulture); sourceStep.SetValue(converted); }
public virtual object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture) { var toReturn = _wrapped.ConvertBack(value, targetType, parameter, culture); return(MapIfSpecialValue(toReturn)); }
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture) { return(_wrapped.ConvertBack(value, targetType, parameter, culture)); }