Hello all:
I read the following statement from MSDN
http://msdn2.microsoft.com/en-us/library/sf0df423(vs.71).aspx
A using directive does not give you access to any namespaces that may be nested in the namespace you specify.
What is the real meaning behind this statement
I tested the following code and it works !
Thank you
-Daniel
// cs_using_directive.cs
using MyCompany.Proj.Nested;
namespace MyCompany.Proj
{
public class MyClass
{
public static void DoNothing()
{
}
}
namespace Nested // a nested namespace
{
public class ClassInNestedNameSpace
{
public static void SayHello()
{
System.Console.WriteLine("Hello");
}
}
}
}
public class UnNestedClass
{
public static void Main()
{
ClassInNestedNameSpace.SayHello(); // access function through using directive
}
}