C# namespaces

W

Wendy Elizabeth

In a C#.net 2008 solution that I need to start working on for the first time,
the same namespace name is used in lots of different projects in the same
solution. Do you have any idea why this would be setup like this? Would this
be setup to overload(override) the namespace. Basically the name 'projectall'
namespace is used in lots of proejcts in the same solution.
 
M

Mr. Arnold

Wendy said:
In a C#.net 2008 solution that I need to start working on for the first time,
the same namespace name is used in lots of different projects in the same
solution. Do you have any idea why this would be setup like this? Would this
be setup to overload(override) the namespace. Basically the name 'projectall'
namespace is used in lots of proejcts in the same solution.

It's a public (core project) common to all projects in the solution. The
project may have public functionality in it that all projects need, and
they have reference to it.
 
A

Arne Vajhøj

In a C#.net 2008 solution that I need to start working on for the first time,
the same namespace name is used in lots of different projects in the same
solution. Do you have any idea why this would be setup like this? Would this
be setup to overload(override) the namespace. Basically the name 'projectall'
namespace is used in lots of proejcts in the same solution.

My guess is that somebody did too much copy paste!

:)

I don't think it is good - you should use different namespaces
for stuff that logical separate.

If something is in different projects then there is a good
chance that they are logical separate.

Arne
 
J

Jeff Johnson

In a C#.net 2008 solution that I need to start working on for the first
time,
the same namespace name is used in lots of different projects in the same
solution. Do you have any idea why this would be setup like this? Would
this
be setup to overload(override) the namespace. Basically the name
'projectall'
namespace is used in lots of proejcts in the same solution.

In general I'd say you should have a very good reason before splitting
namespaces across multiple assemblies. That said, even the .NET Framework
does this. Some parts of System, for example, are located in mscorlib.dll
while others are in System.dll.
 

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