Export (0) Print
Expand All
2 out of 6 rated this helpful - Rate this topic

:: Operator (C# Reference)

The namespace alias qualifier (::) is used to look up identifiers. It is always positioned between two identifiers, as in this example:


global::System.Console.WriteLine("Hello World");


The namespace alias qualifier can be global. This invokes a lookup in the global namespace, rather than an aliased namespace.

For an example of how to use the :: operator, see the following section:

For more information, see the C# Language Specification. The language specification is the definitive source for C# syntax and usage.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.