Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Getting a list of all assemblies
Message
De
19/05/2009 10:23:34
 
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Versions des environnements
Environment:
C# 2.0
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
MS SQL Server
Divers
Thread ID:
01400626
Message ID:
01400639
Vues:
50
>Hi All, my app consists of an exe and twenty or so dlls, if I want to iterate through each assembly's type, can I do that by loading the exe as shown
>
>Assembly a = Assembly.LoadFrom(Application.ExecutablePath);
>
>
>what I'm trying to say ( badly It's been a long day ), is, "will all the dll's types be returned to the variable a" ? or just the ones in the exe's namespace ?

I don't think so, Pete

See GetReferencedAssemblies() : http://msdn.microsoft.com/en-us/library/system.reflection.assembly.getreferencedassemblies.aspx
Gregory
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform