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. For more information, see Namespaces (C# Programming Guide)

The following sample generates CS0101:

// CS0101.cs
namespace MyNamespace
{
   public class MyClass
   {
      static public void Main()
      {
      }
   }

   public class MyClass   // CS0101
   {
   }
}

Community Additions

ADD
Show:
© 2015 Microsoft