Beispiel #1
0
        protected sealed override bool Convert(object[] values, TParamIn _parameter, CultureInfo culture, out TDestinationOut result)
        {
            if (Convert(values, ParameterConverters.Convert(_parameter), culture, out TDestinationIn _result))
            {
                result = DestinationConverters.ConvertBack(_result);

                return(true);
            }

            result = DestinationConverters.GetDefaultValue <TDestinationOut>();

            return(false);
        }
Beispiel #2
0
 protected sealed override object[] ConvertBack(TDestinationOut _value, TParamIn _parameter, CultureInfo culture) => ConvertBack(DestinationConverters.Convert(_value), ParameterConverters.Convert(_parameter), culture);