This documentation is archived and is not being maintained.

Compiler Error CS1002 

Error Message

; expected

The compiler detected a missing semicolon.

The following sample generates CS1002:

// CS1002.cs
namespace x
{
   abstract public class clx
   {
      int i   // CS1002, missing semicolon

      public static int Main()
      {
         return 0;
      }
   }
}
Show: