Export (0) Print
Expand All
Expand Minimize

Compiler Error CS0101

The namespace 'namespace' already contains a definition for 'type'

A namespace has duplicate identifiers. Rename or delete one of the duplicate identifiers.

The following sample generates CS0101:

// CS0101.cs
namespace x
{
   public class clx
   {
      static public void Main()
      {
      }
   }

   public class clx   // CS0101
   {
   }
}
Show:
© 2015 Microsoft