The global namespace classifier allows you to access a member in the global ("empty") namespace.
If you were to call an unqualified type (for example, MyClass.DoSomething (), and not MyNamespace.MyClass.DoSomething ()), then it is assumed that it is in the current namespace. How then do you qualify a type to say that it is in a global / empty namespace?
This sample code (console application) should illustrate its behavior:
using System; namespace MyNamespace { public class Program { static void Main(string[] args) { MessageWriter.Write();
Rob levine
source share