Creating a new EditorAttribute?
Posted on 2006-11-08
I'm having trouble creating an EditorAttribute to be used on a PropertyDescriptor. Basically I'm creating a dynamic class from an xml file for editing values via a property grid. Everything is working fine, and I'm able to add other attributes I need, but I run into a wall trying to add an EditorAttribute.
This line of code: new EditorAttribute(GetType(FolderNameEditor),GetType(UITypeEditor));
Is giving me a 'class name not valid at this point' for both 'FolderNameEditor' and 'UITypeEditor'.
Any thoughts? I can provide more code if necessary,