编译器错误 CS1028

更新:2007 年 11 月

错误消息

意外的预处理器指令

发现了预处理器指令,但它不应出现。

例如,发现了 #endif,但前面没有 #if。

下面的示例生成 CS1028:

// CS1028.cs
#endif   // CS1028, no matching #if
namespace x
{
   public class clx
   {
      public static void Main()
      {
      }
   }
}