Hi,
If I declare multiple namspaces, each in a separate file, how do I
specify their path with the "using" directives?
Say I have 2 namespaces and 1 main function, all in separate files such
as follows
=====================================
File1.cs:
namespace A
{
public class Foo
{ .... }
}
=====================================
File2.cs:
namespace B
{
public class Bar
{ .... }
}
=====================================
Application.cs:
using System;
using A;
using B;
class Greeting
{
public Foo f = new Foo ();
public Bar b = new Bar ();
static void Main()
{ ..... }
}
=====================================
using A and using B gives me this error:
The type or namespace name 'A' could not be found (are you missing a
using directive or an assembly reference?)
The type or namespace name 'B' could not be found (are you missing a
using directive or an assembly reference?)
Obviously I have not missed a "using" directive. How should I let
Application.cs know that A and B are sitting in File1.cs and File2.cs
respectively ?
I really don't want to put them one single file, as you can see a
nightmare is coming when the project span across 100 people, each with
a couple of their own namespace....
Many Many Thx
Jack