已不再支援此瀏覽器。
請升級至 Microsoft Edge,以利用最新功能、安全性更新和技術支援。
更新:2007 年 11 月
欄位不能有 void 型別
欄位的型別宣告成 void。
下列範例會產生 CS0670:
// CS0670.cs class C { void f; // CS0670 // try the following line instead // public int f; public static void Main() { C myc = new C(); myc.f = 0; } }