Compiler Error CS0519
TOC
Collapse the table of content
Expand the table of content

Compiler Error CS0519

Visual Studio .NET 2003

'name' conflicts with a predefined namespace

A user-defined identifier is the same as an identifier in a predefined namespace of the common language runtime.

The following sample generates CS0519:

// CS0519.cs
class System   // CS0519, rename class
{
   public static int Main()
   {
      return(0);
   }
}
Show:
© 2016 Microsoft