D
Dylan Parry
Hi,
I've started to get a bit confused by namespaces and hierarchical
organisation in general. What I want to do is something like this:
Namespace MyNamespace
|
|- Class Foo
|
|- Namespace MyNamespace.Foo
| |
| |- Class Example
| |
| |- Class AnotherExample
|
|- Class Bar
In the above, I have a namespace containing all of my work and within
that namespace I have a class called /Foo/ that can be used to create
objects of type /Foo/.
Now what I want is to have a namespace within /MyNamespace/ that is also
called /Foo/. Obviously this conflicts with the class of the same name.
So I suppose my question is really how do I organise the above into
something that is *actually* possible to achieve so that I can have a
class /Foo/ that is hierarchically the parent of classes /Example/ and
/AnotherExample/?
Can you suggest any good reading on C# namespaces in general, and how I
can get my head around them?
TIA,
I've started to get a bit confused by namespaces and hierarchical
organisation in general. What I want to do is something like this:
Namespace MyNamespace
|
|- Class Foo
|
|- Namespace MyNamespace.Foo
| |
| |- Class Example
| |
| |- Class AnotherExample
|
|- Class Bar
In the above, I have a namespace containing all of my work and within
that namespace I have a class called /Foo/ that can be used to create
objects of type /Foo/.
Now what I want is to have a namespace within /MyNamespace/ that is also
called /Foo/. Obviously this conflicts with the class of the same name.
So I suppose my question is really how do I organise the above into
something that is *actually* possible to achieve so that I can have a
class /Foo/ that is hierarchically the parent of classes /Example/ and
/AnotherExample/?
Can you suggest any good reading on C# namespaces in general, and how I
can get my head around them?
TIA,