更新:2007 年 11 月
错误消息
stackalloc 表达式在类型后要求有 []
使用 stackalloc 请求的分配大小必须在方括号中指定。
下面的示例生成 CS1575:
// CS1575.cs
// compile with: /unsafe
public class MyClass
{
   unsafe public static void Main()
   {
      int *p = stackalloc int (30);   // CS1575
      // try the following line instead
      // int *p = stackalloc int [30];
   }
}