locked
Some queries about TypeConverter RRS feed

  • Question

  • User339316561 posted

    Hi guys,

    I made a server control. And I implemented a TypeConverter for a complexity property. I don't really understand where some code in TypeConverter will be invoked.

     public override object ConvertTo(ITypeDescriptorContext context,
                System.Globalization.CultureInfo culture, object value, Type destinationType)

    1.Who will invoke the method ConvertTo()?

    2.In which situation the parameter destinationType will be InstanceDescriptor? And when will it be String?

    Have a strong desire to know the answer, please help!

    Tuesday, April 23, 2013 12:46 AM

Answers