need class names

  • Thread starter Thread starter P.Sunil
  • Start date Start date
P

P.Sunil

How to Find all class names In an assembly or namespace..
programmatically. I am getting Assembly name by user input.
i.e I dont't the assembly name at compile time .
 
You should use Reflection.
Have a look in MSDN under System.Relection namespace.
Lots of examples are available on the web too.

HTH
Sunil
 
P.Sunil said:
How to Find all class names In an assembly or namespace..
programmatically. I am getting Assembly name by user input.
i.e I dont't the assembly name at compile time .

Load the assembly using Assembly.Load, Assembly.LoadFile or
Assembly.LoadFrom (which are subtly different; see the docs for more
details). Then use Assembly.GetTypes.

For your other question, see my response to your similar question 3
days ago.
 
Back
Top