Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Compiler Error CS0101
Collapse the table of content
Expand the table of content

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