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

            ClassWithNestedMEConverter instance = value as ClassWithNestedMEConverter;

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

            ClassWithNestedMEExtension extension = new ClassWithNestedMEExtension();

            return(extension);
        }
Ejemplo n.º 2
0
        public override object ProvideValue(IServiceProvider serviceProvider)
        {
            ClassWithNestedMEConverter c = new ClassWithNestedMEConverter();

            return(c);
        }