更新:2007 年 11 月
错误消息
数组创建必须有数组大小或数组初始值设定项
数组未正确声明。
下面的示例生成 CS1586:
// CS1586.cs
using System;
class MyClass
{
public static void Main()
{
int[] a = new int[]; // CS1586
// try the following line instead
int[] b = new int[5];
}
}