:: Operator (C# Reference)
The namespace alias qualifier operator.
The namespace alias qualifier (::) is used to look up identifiers. It is always placed between two identifiers, as in this example:
global::System.Console.WriteLine("Hello World");
Remarks
The namespace alias qualifier can be global
. This invokes a lookup in the global namespace, rather than an aliased namespace.
For More Information
For an example of using the :: operator, see the following section:
C# Language Specification
For more information, see the following sections in the C# Language Specification:
20.9.5 Simple names
25.3 Namespace alias qualifiers
See Also
Reference
C# Operators
Namespace Keywords (C# Reference)
. Operator (C# Reference)
extern alias (C# Reference)