global (C# Reference)

 

Updated: July 20, 2015

System_CAPS_ICON_note.jpg Note

For the latest documentation on C#, visit the C# Guide on docs.microsoft.com.

The global contextual keyword, when it comes before the :: operator, refers to the global namespace, which is the default namespace for any C# program and is otherwise unnamed. For more information, see How to: Use the Global Namespace Alias.

The following example shows how to use the global contextual keyword to specify that the class TestApp is defined in the global namespace:

        class TestClass : global::TestApp { }

Namespaces

Show: