Changing attributes at runtime

J

John Allen

I need to change the "Browsable" attribute for one of my class' properties
at runtime (from "true" to "false"). The only way I can see how to do it is
via "ICustomTypeDescriptor.GetProperties()" which means implementing the
latter interface on my class, creating a customized "PropertyDescriptor",
etc. Basically a lot of work for something so simple. Is there an easier way
to do this. Thanks.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top