此浏览器不再受支持。
请升级到 Microsoft Edge 以使用最新的功能、安全更新和技术支持。
更新:2007 年 11 月
不允许在命名空间中定义的元素上使用关键字“new”
没有必要在 namespace 中的任何构造上均指定 new 关键字。
下面的示例生成 CS1530:
// CS1530.cs namespace a { new class i // CS1530 { } // try the following instead class ii { public static void Main() { } } }