getting root namespace name

  • Thread starter Thread starter Brian Henry
  • Start date Start date
B

Brian Henry

Is there anyway to get the name of the rootname space of a loaded assembly
back as a string? thanks
 
Brian Henry said:
Is there anyway to get the name of the rootname space of a loaded
assembly back as a string?

Something like

System.Reflection.Assembly.GetExecutingAssembly.GetName.Name

<whew>

or possibly .FullName; I can't remember which.

HTH,
Phill W.
 
thanks a lot!

Phill. W said:
Something like

System.Reflection.Assembly.GetExecutingAssembly.GetName.Name

<whew>

or possibly .FullName; I can't remember which.

HTH,
Phill W.
 
humm no, neither of those return the root namespace, any other ideas?
 
Brian said:
humm no, neither of those return the root namespace, any other ideas?

At runtime there is no root namespace. It's only there that you don't have
to type the namespace name for each class. You can also leave it blank.

http://groups.google.com/groups?threadm=#[email protected]&rnum=6

In other words, what's the root namespapce if the only two classes in the
assembly are called A.Class1 and B.Class2? Or there might be even no class
at all in the assembly, so what's the assemblies root namespace?

Armin
 

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

Back
Top