编译器错误 CS1663
更新:2007 年 11 月
错误消息
固定大小的缓冲区类型必须为下列类型之一: bool、byte、short、int、long、char、sbyte、ushort、uint、ulong、float 或 double
固定大小的缓冲区不能是上面列出的类型以外的任何其他类型。若要避免此错误,请使用其他类型或者不使用固定数组。
示例
下面的示例生成 CS1663。
// CS1663.cs
// compile with: /unsafe /target:library
unsafe struct C
{
fixed string ab[10]; // CS1663
}