Hello. I have the following question. I have MSVS solution with three projects in it.
- first project is VSX project witch shows form with property grid in it.
- second is typical C# library project with custom type converter class BooleanYesNoConverter inherited from BooleanConverter. This converter is used to show Yes/No in property grid instead of True/False.
- third project is also C# library project which contains public class with one public property which has attribute
[TypeConverter(typeof(BooleanYesNoConverter))]
There are references to second project from first and third.
When when we start first project in debug mode (in VS Experimental hive) and click on menu, plugin loads assembly generated from third project (with help of Assembly.LoadFrom) and instantiates our class (with one public boolean property). Then it pass this instance to propertyGrid.SelectedObject property. Property grid displays public property but instead Yes/No it shows True/False on the right.
I have put breakpoints in coverter's methods (and constructor) but it seems like we didn't go there. Instead of custom type converter, standard is used.
It is more interesting, that if I place BooleanYesNoConverter class in the third project (so it will be n one assembly with my class) property grid shows correct Yes/No variants.
Thank you for your help in advance!