Getting Available Namespaces with Reflection

D

Dave Wurtz

All,

Is it possible to get all of the current namespaces that are available
through reflection? What I am trying to do is get back all of the
namespaces, then classes within the namespaces, then methods/properties
within the classes. I need each one separated - like VS.NET's intellisense.

I'm trying to get all of this information from
System.Reflection.Assembly.GetExecutingAssembly.GetReferencedAssemblies.

Thanks for the help!

Dave Wurtz
Advanced Software Designs
 
A

AirPete

Dave said:
All,

Is it possible to get all of the current namespaces that are available
through reflection? What I am trying to do is get back all of the
namespaces, then classes within the namespaces, then
methods/properties within the classes. I need each one separated -
like VS.NET's intellisense.

I'm trying to get all of this information from
System.Reflection.Assembly.GetExecutingAssembly.GetReferencedAssemblies.

Thanks for the help!

Dave Wurtz
Advanced Software Designs

IIRC, you'll need to get a list of the fully qualified class names, then
parse them to extract the namespaces, because the CLI doesn't even define
namespaces.

- Pete
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top