Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Defining an alias named 'global' is ill-advised since 'global::' always references the global namespace and not an alias
This warning is issued when you define an alias named global.
Example
The following example generates CS0440:
// CS0440.cs
// Compile with: /W:1
using global = MyClass; // CS0440
class MyClass
{
static void Main()
{
// Note how global refers to the global namespace
// even though it is redefined above.
global::System.Console.WriteLine();
}
}