Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to get list of the classes in casual assembly
Message
From
11/03/2010 09:02:22
Vladimir Zhuravlev
Institute of the Physics of Earth,Russia
Moscow Region, Russia
 
 
To
All
General information
Forum:
ASP.NET
Category:
Other
Title:
How to get list of the classes in casual assembly
Miscellaneous
Thread ID:
01453908
Message ID:
01453908
Views:
112
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.
Next
Reply
Map
View

Click here to load this message in the networking platform