Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to get list of the classes in casual assembly
Message
De
11/03/2010 09:02:22
Vladimir Zhuravlev
Institute of the Physics of Earth,Russia
Moscow Region, Russie
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Titre:
How to get list of the classes in casual assembly
Divers
Thread ID:
01453908
Message ID:
01453908
Vues:
113
I need to get list of classes names from any taken particular assembly by code
For example for system.windows.forms
The assymbly name should be entry method parameter
I tried to write this method using my old samples of using reflection for getting list of methods, events , properties

public string GetModInfo(string Assemblyname)

{

Assembly a = Assembly.LoadWithPartialName(Assemblyname);

** This string now gives error - this is old method of load, code is depricated
** use load instead ???
**
Module M = a.GetModules();
** this also gives error
Type T = M.GetType();
for each( ....

*********************************************************
I looked many samples of using reflection on different sites and did not find the code
MVP-2006-2011, PHD in Math and Physics ,
host of www.foxclub.ru,
VFP lector at Interface and Microinform companies
Head science researcher of VNIIA Rosatom.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform