Exemplo n.º 1
0
        private static bool TryChangeType(object value, Type targetType, CultureInfo culture, out object output)
        {
            ChoConvertEventArgs e = new ChoConvertEventArgs()
            {
                Value = value, ConversionType = targetType, Provider = culture
            };

            ChangeType.Raise(null, e);
            output = e.Output;
            return(e.Handled);
        }