1.5.2.Full qualify name |
|
For example, the line |
Console.WriteLine("A simple C# program.");
|
|
can be rewritten as |
System.Console.WriteLine("A simple C# program.");
|
|
Namespaces Are Additive |
namespace OuterNS {
namespace InnerNS {
// ...
}
}
|
|
can also be specified like this: |
namespace OuterNS.InnerNS {
// ...
}
|
|
class MainClass{
public static void Main()
{
int count = 1;
System.Console.WriteLine("count = " + count);
}
}
|
|
count = 1 |