You'll probably get a more complete answer from someone with experience
doing this, but in case it helps...

Chapter 20 of Richter's 'Applied .NET Framework Programming' includes code
that demonstrates loading of arbitrary assemblies and reflecting over their
contents, including Types.  However, the sample I'm thinking of - on pages
525-532 - uses hard-coded assembly names. This isn't practical for your
case, so you'd need code that gives you the assemblies in the GAC to bridge
this gap. (This code might be obvious, but I'm a newbie, so I don't know if
it is or not.)

Also, you probably know this too, but 'all the types' will be quite a lot,
perhaps too many for a listbox? mscorlib.dll alone contains over 1400 types
(also according to Richter's book).

Hope this starts to help,
Andrew

----- Original Message -----
From: "Brady Gaster" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, December 03, 2002 3:09 PM
Subject: [ADVANCED-DOTNET] How to get a list of the Types installed...


> Has anyone ever seen an example (or written an example) of a way to get a
> list of all of the Types installed into the GAC? Basically, I'd like to
> somehow populate a listbox with all of the .Net Types installed on a
> machine.
>
>
> Brady Gaster
> Wells-Fargo Service Company
> Executive Support
> (602) 790-2081
>
>
> You can read messages from the Advanced DOTNET archive, unsubscribe from
Advanced DOTNET, or
> subscribe to other DevelopMentor lists at http://discuss.develop.com.
>

You can read messages from the Advanced DOTNET archive, unsubscribe from Advanced 
DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.

Reply via email to