Kommentar
Åtkomst till den här sidan kräver auktorisering. Du kan prova att logga in eller ändra kataloger.
Åtkomst till den här sidan kräver auktorisering. Du kan prova att ändra kataloger.
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();
}
}