Catel.MVVM.Converters.ValueConverterGroup.ConvertBack C# (CSharp) Метод

ConvertBack() публичный Метод

Converts a value.
public ConvertBack ( object value, Type targetType, object parameter, CultureInfo culture ) : object
value object The value that is produced by the binding target.
targetType System.Type The type to convert to.
parameter object The converter parameter to use.
culture System.Globalization.CultureInfo The culture to use in the converter.
Результат object
        public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
        {
            object output = value;

            for (int i = Converters.Count - 1; i > -1; --i)
            {
                var converter = Converters[i];
                var currentTargetType = GetTargetType(i, targetType, false);
                output = converter.ConvertBack(output, currentTargetType, parameter, culture);

                // When a converter returns 'DoNothing' the binding operation should terminate.
                if (output == Binding.DoNothing)
                {
                    break;
                }
            }

            return output;
        }