Export (0) Print
Expand All
Expand Minimize

Compiler Error CS0102

The class 'class' already contains a definition for 'identifier'

A class contains multiple declarations for identifiers with the same name; delete or rename one of the duplicate identifiers.

The following sample generates CS0102:

// CS0102.cs
namespace x
   abstract public class clx
      int i;

      enum splitch : int
         x, x   // CS0102

      public static int Main()
         return 0;
© 2015 Microsoft