更新:2007 年 11 月
错误消息
常数字段要求提供一个值必须初始化 
下面的示例生成 CS0145:
// CS0145.cs
class MyClass
{
   const int i;   // CS0145
   // try the following line instead
   // const int i = 0;
   public static void Main()
   {
   }
} | |
更新:2007 年 11 月
必须初始化 
下面的示例生成 CS0145:
// CS0145.cs
class MyClass
{
   const int i;   // CS0145
   // try the following line instead
   // const int i = 0;
   public static void Main()
   {
   }
} | |