已不再支援此瀏覽器。
請升級至 Microsoft Edge,以利用最新功能、安全性更新和技術支援。
更新:2007 年 11 月
關鍵字 'void' 不能用在此內容中
編譯器偵測到 void 關鍵字無效的使用方式。
下列範例會產生 CS1547:
// CS1547.cs public class MyClass { void BadMethod() { void i; // CS1547, cannot have variables of type void } public static void Main() { } }