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