Example #1
0
        public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
        {
            if (destinationType != typeof(MarkupExtension))
            {
                throw new ArgumentException();
            }

            ClassWithNestedMEConverterWithCstrArgs instance = value as ClassWithNestedMEConverterWithCstrArgs;

            if (null == instance)
            {
                throw new ArgumentException();
            }

            ClassWithNestedMEWithCstrArgsExtension extension = new ClassWithNestedMEWithCstrArgsExtension();

            return(extension);
        }
Example #2
0
        public override object ProvideValue(IServiceProvider serviceProvider)
        {
            ClassWithNestedMEConverterWithCstrArgs c = new ClassWithNestedMEConverterWithCstrArgs();

            return(c);
        }