更新:2007 年 11 月
错误消息
“function declaration”的签名错误,不能作为入口点Main 的方法声明无效:声明所使用的签名无效。Main 必须声明为静态的并且它必须返回
下面的示例生成 CS0028:
复制代码 | |
---|---|
// CS0028.cs // compile with: /W:4 /warnaserror public class a { public static double Main(int i) // CS0028 // Try the following line instead: // public static void Main() { } } |