编译器警告(等级 1)CS1634
更新:2007 年 11 月
错误消息
应为 disable 或 restore
如果 #pragma warning 子句的格式错误,例如省略了 disable 或 restore,则会出现此错误。有关更多信息,请参见 #pragma warning 主题。
示例
下面的示例生成 CS1634:
// CS1634.cs
// compile with: /W:1
#pragma warning // CS1634
// Try this instead:
// #pragma warning disable 0219
class MyClass
{
public static void Main()
{
}
}