编译器错误 CS1027
更新:2007 年 11 月
错误消息
应输入 #endif 指令
没有为指定的 #if 指令找到匹配的 #endif 预处理器指令。或者,在 #if 块中没有匹配的 #region 指令,而编译器可能找到了 #endregion 指令。
下面的示例生成 CS1027:
// CS1027.cs
#if true // CS1027, uncomment next line to resolve
// #endif
namespace x
{
public class clx
{
public static void Main()
{
}
}
}