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); }
public override object ProvideValue(IServiceProvider serviceProvider) { ClassWithNestedMEConverterWithCstrArgs c = new ClassWithNestedMEConverterWithCstrArgs(); return(c); }