Click to Rate and Give Feedback
MSDN
MSDN Library
Visual Studio 2005
Visual Studio
Visual C#
C# Reference
C# Operators
 :: Operator

  Switch on low bandwidth view
This page is specific to
Microsoft Visual Studio 2005/.NET Framework 2.0

Other versions are also available for the following:

Want more? Here are some additional resources on this topic:

C# Language Reference
:: 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");

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

For an example of using the :: operator, see the following section:

For more information, see the following sections in the C# Language Specification:

  • 20.9.5 Simple names

  • 25.3 Namespace alias qualifiers

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker