Listing all types in a project/sollution

S

shiretu

Hi,


I have problems listing all the types defined/imported by a project at
design time. Basically I want a StringConverter to show a combo box in
my control properties (a property with TypeConverter attribute) at
design time with all type names from the project containing the
control.

Is this possible?

Currently i enumerate all the assemblies loaded by the designer and
than all the types from each assembly enumerated. Depending on the
inheritance of the types, I put them in the combo. But I don't think
this is a good method because I relay on the assumption that all
project references are loaded into the AppDomain of the designer and
second of all, I MUST have a compiled version of the types I want to
enumerate. I've found some lines of code in other google groups:


EnvDTE._DTE dte = (EnvDTE._DTE)context.GetService(
typeof(EnvDTE._DTE));

Is something about enumerating the types that are not even compiled
(enumerate from sources in the project) but I didn't find any
documentation about it....


Tx
 

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

Members online

Forum statistics

Threads
473,999
Messages
2,570,246
Members
46,843
Latest member
WizcraftEntertainmentAgen

Latest Threads

Top