Export (0) Print
Expand All
Expand Minimize

Compiler Error CS1001

Identifier expected

You did not supply an identifier. For example, when declaring an enum, you must specify members.

The following sample generates CS1001:

// CS1001.cs
public class clx
{
   enum splitch : int
   {
      'a', 'b' // CS1001, 'a' is not a valid int identifier
   };

   public static void Main()
   {
   }
}
Show:
© 2015 Microsoft