New Features in C# 2.0—Access Objects in the Global Namespace
Microsoft .NET Framework, ASP.NET, Visual C# (CSharp, C Sharp, C-Sharp) Developer Training, Visual Studio
| CSharp-Online.NET:Tutorials |
| C# Tutorials |
| © 2005 O'Reilly Media, Inc. |
Access Objects in the Global Namespace
As in previous versions of C#, the namespace keyword is used to declare
a scope. This lets you organize your code and prevents identifier collisions
(for example, two different classes with the same name), especially
when using third-party components.
Any object that is not defined within a specific namespace is in the global namespace. Objects in the global namespace are available to objects in any other namespace. If a name collision occurs, however, you will need a way to specify that you want the object in the global namespace rather than in the local namespace.
| The global namespace qualifier allows you to specify an identifier in the (default) global namespace rather than in the local namespace. |
|

