更新:2007 年 11 月
错误消息
数组元素不能是“type”类型
有些类型不能用作数组的类型。这些类型包括 System.TypedReference 和 System.ArgIterator。
下面的示例由于将 System.TypedReference 用作数据元素而生成 CS0611:
// CS0611.cs
public class a
{
public static void Main()
{
System.TypedReference[] ao = new System.TypedReference [10]; // CS0611
// try the following line instead
// int[] ao = new int[10];
}
}