It would not be very neat doing this using reflection because there are
no interfaces that will give direct information from classes in external
assemblies... only referenced assemblies.
However you could read the Assembly's metadata and do a lookup on
TypeDef and TypeRef tables. Have a look at
http://www.jbrowse.com/products/asmex/download.shtml or SharpAssembly by
downloading the source code for SharpDevelop
(
http://www.sharpdevelop.com/OpenSource/SD/Default.aspx) and looking at
the path src\Libraries\SharpAssembly. These libraries will give you what
you need but there is some work involved in understanding how it all
works... it is definitely harder than calling a couple of methods from
the Reflection API.
HTH
Erick Sgarbi
www.blog.csharpbox.com
"ga**@designercontrols.com" <ga**@designercontrols.com> wrote in message
news:11**********************@g43g2000cwa.googlegr oups.com:
Given an assembly loaded into memory, I can call GetTypes() to get a
list of types that are defined in the assembly.
However, how can I get a list of types that are used in the assembly
that are defined in other assemblies?