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 project's root
namespace).
However, the project also includes a couple of source files whose contents
will live in an entirely different namespace, let's say the "Special"
namespace.
So, within those particular source files, I use the Namespace statement:
Namespace Special
However, this puts the code into the namespace "Root.Special", not
"Special".
Does anyone know whether it's possible to use the Namespace statement to put
something into a top level namespace, NOT within the project's root
namespace?
Thanks,
Jeff Brown 2 1934
Jeff, Does anyone know whether it's possible to use the Namespace statement to put something into a top level namespace, NOT within the project's root namespace?
No, when you set the project's root namespace it is set for every file!
Have you considered moving the Special namespace into its own project? As it
sounds like it is outside the namespace of the current project.
However most of my solutions, the root of all projects share a common root.
For example, in my "My Application" solution, I might have:
Solution: My Application
Folder: My Application
Project: My App
Folder: My Application\My App
Namespace: MyApp
Assembly: MyApp.exe
Project: Framework
Folder: My Application\Framework
Namespace: MyApp.Framework
Assembly: MyApp.Framework.dll
Project: Plugin1
Folder: My Application\Plugin1
Namespace: MyApp.Plugin1
Assembly: MyApp.Plugin1.dll
Project: Plugin2
Folder: My Application\Plugin2
Namespace: MyApp.Plugin2
Assembly: MyApp.Plugin2.dll
Project: Data
Folder: My Application\Data
Namespace: MyApp.Data
Assembly: MyApp.Data.dll
Project: UI
Folder: My Application\UI
Namespace: MyApp.UI
Assembly: MyApp.UI.dll
Hope this helps
Jay
"Jeff Brown" <wo**************@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl... 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 project's root namespace).
However, the project also includes a couple of source files whose contents will live in an entirely different namespace, let's say the "Special" namespace.
So, within those particular source files, I use the Namespace statement: Namespace Special
However, this puts the code into the namespace "Root.Special", not "Special".
Does anyone know whether it's possible to use the Namespace statement to put something into a top level namespace, NOT within the project's root namespace?
Thanks, Jeff Brown
Jeff, Does anyone know whether it's possible to use the Namespace statement to put something into a top level namespace, NOT within the project's root namespace?
No, when you set the project's root namespace it is set for every file!
Have you considered moving the Special namespace into its own project? As it
sounds like it is outside the namespace of the current project.
However most of my solutions, the root of all projects share a common root.
For example, in my "My Application" solution, I might have:
Solution: My Application
Folder: My Application
Project: My App
Folder: My Application\My App
Namespace: MyApp
Assembly: MyApp.exe
Project: Framework
Folder: My Application\Framework
Namespace: MyApp.Framework
Assembly: MyApp.Framework.dll
Project: Plugin1
Folder: My Application\Plugin1
Namespace: MyApp.Plugin1
Assembly: MyApp.Plugin1.dll
Project: Plugin2
Folder: My Application\Plugin2
Namespace: MyApp.Plugin2
Assembly: MyApp.Plugin2.dll
Project: Data
Folder: My Application\Data
Namespace: MyApp.Data
Assembly: MyApp.Data.dll
Project: UI
Folder: My Application\UI
Namespace: MyApp.UI
Assembly: MyApp.UI.dll
Hope this helps
Jay
"Jeff Brown" <wo**************@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl... 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 project's root namespace).
However, the project also includes a couple of source files whose contents will live in an entirely different namespace, let's say the "Special" namespace.
So, within those particular source files, I use the Namespace statement: Namespace Special
However, this puts the code into the namespace "Root.Special", not "Special".
Does anyone know whether it's possible to use the Namespace statement to put something into a top level namespace, NOT within the project's root namespace?
Thanks, Jeff Brown This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Marcus Otmarsen |
last post by:
Ok, the situation is as follows:
I defined a <DIV> like:
<div id="myid" style="position: absolute; height: 10; width: 10;"><img src="images/object.gif" height=10 width=10></div>
This pane is...
|
by: Dave Hammond |
last post by:
In document "A.html" I have defined a function and within the document
body have included an IFRAME element who's source is document "B.html".
In document "B.html" I am trying to call the function...
|
by: someone |
last post by:
Here is my code:
TreeNodeCollection nodes = tvwFolders.Nodes;
if (nodes.Count > 0)
{
// Select the root node
tvwFolders.SelectedNode = nodes;
}
I hope there is an easier way. I looked at...
|
by: Arthur Dent |
last post by:
Hello all...
Im seeing something strange. I have a repeater control which has a
footertemplate.
The content in the footertemplate however is showing up at the TOP of the
repeater contents....
|
by: Paul Ertz |
last post by:
Hello,
We would like to hide the left column for the main/home page of our
plone sites dynamically using a tal: expression. I figured out that I
need to customize the main_template file...
|
by: priyam.trivedi |
last post by:
Hi!
Could anyone tell me how to find the square root of a number without
using the sqrt function. I did it by using Newton's Formula. How can it
be done by using the Binomial Theorem/Taylor...
|
by: jklBruin |
last post by:
i'm trying to implement converting xsl-fo to pdf on a .Net page.
i''m getting the error message:
Root element must be root, not http://www.w3.org/1999/XSL/Transform:stylesheet
here's the xsl...
|
by: iwl |
last post by:
Hi,
I tryed askstring to input some text in my script,
but some ugly empty Window appears with the
Input-Window behind and all together behind my
Console showing my script. So all have to...
|
by: sheldonlg |
last post by:
I define a div, excItem, with absolute positioning and with a top of
400px. I then call a javascript function which does toggling of
visibility and should do positioning as well. I loop though...
|
by: Death Slaught |
last post by:
As usual everything looks great in Opera and FF. I test my page in IE, and hell is unleashed.
A giant space on the right side of the screen appears and this is shoving my anchors all the way with...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
| |