473,326 Members | 2,196 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

getting root namespace name

Is there anyway to get the name of the rootname space of a loaded assembly
back as a string? thanks
Nov 21 '05 #1
4 2390
"Brian Henry" <no****@nospam.com> wrote in message
news:%2****************@TK2MSFTNGP15.phx.gbl...
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.Ge tName.Name

<whew>

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

HTH,
Phill W.
Nov 21 '05 #2
thanks a lot!

"Phill. W" <P.A.Ward@o-p-e-n-.-a-c-.-u-k> wrote in message
news:db**********@yarrow.open.ac.uk...
"Brian Henry" <no****@nospam.com> wrote in message
news:%2****************@TK2MSFTNGP15.phx.gbl...
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.Ge tName.Name

<whew>

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

HTH,
Phill W.

Nov 21 '05 #3
humm no, neither of those return the root namespace, any other ideas?

"Phill. W" <P.A.Ward@o-p-e-n-.-a-c-.-u-k> wrote in message
news:db**********@yarrow.open.ac.uk...
"Brian Henry" <no****@nospam.com> wrote in message
news:%2****************@TK2MSFTNGP15.phx.gbl...
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.Ge tName.Name

<whew>

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

HTH,
Phill W.

Nov 21 '05 #4
Brian Henry schrieb:
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?thre...phx.gbl&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
Nov 21 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Matty | last post by:
I have successfully written a couple of Web services that work fine on my localhost so this is not a security issue. My problem only arises when I set the Root Namespace of a Web service to...
2
by: Steve Richter | last post by:
I have a simple project that builds ok in Visual Web Developer, but which fails when I navigate to it at //localhost. The error is "namespace 'ac' could not be found". the problem page is at...
3
by: Lee Moody | last post by:
Does anyone know where I can access programmically the value stored in the "Root Namespace" parameter of the project's common properties? To find this within the IDE, select your project name...
2
by: Rafael Pivato | last post by:
Can I have two Class Libraries to share the same root namespace ? I want something like this: MySystem (root namespace) MyBO (class library A) MyDS (class library B) MyUS (class library C)
3
by: CCJohn | last post by:
Hi, I find that while I can use the "Namespace...End Namespace" inside my code, there is also a "Root namespace" field in the project properties dialog box under General. So where should I put...
2
by: Jeff Brown | last post by:
Hi, I suspect that this isn't possible, but I figured I'd ask. My project has a root namespace, let's say it's "Root", that applies to almost every source file (which is why I've set it as the...
6
by: Viet | last post by:
Is it possible to instantiate an object from the Root namespace? I have a MS Visual Studio 2002 vb.net project consisting of a dozen individual project files and I would like to know how to...
2
by: gabe | last post by:
Hi, We have a number of projects that will use the default 'Root Namespace' option in the project properties box. There will be a common Master Page that will be used among the projects. I'd...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.