编译器警告(等级 1)CS1645

更新:2007 年 11 月

错误消息

功能“feature”不是标准化 ISO C# 语言规范的一部分,有些编译器可能不接受它

您正在使用的功能不是 ISO 标准的一部分。使用此功能的代码可能无法在其他编译器上进行编译。

// CS1645.cs
// compile with: /W:1 /t:module /langversion:ISO-1
[assembly:System.CLSCompliant(false)]
// To supress the warning use the switch: /nowarn:1645
[module:System.CLSCompliant(false)]   // CS1645
class Test
{
}