更新:2007 年 11 月
错误消息
无法创建抽象类或接口“interface”的实例不能创建
下面的示例生成 CS0144:
复制代码 | |
---|---|
// CS0144.cs interface MyInterface { } public class MyClass { public static void Main() { MyInterface myInterface = new MyInterface (); // CS0144 } } |
更新:2007 年 11 月
不能创建
下面的示例生成 CS0144:
复制代码 | |
---|---|
// CS0144.cs interface MyInterface { } public class MyClass { public static void Main() { MyInterface myInterface = new MyInterface (); // CS0144 } } |