Error del compilador CS1663

Actualización: noviembre 2007

Mensaje de error

El tipo búfer de tamaño fijo debe pertenecer a uno de los tipos siguientes: bool, byte, short, int, long, char, sbyte, ushort, uint, ulong, float o double
Fixed size buffer type must be one of the following: bool, byte, short, int, long, char, sbyte, ushort, uint, ulong, float or double

Un búfer de tamaño fijo no puede ser de ningún tipo no incluido en la lista. Para evitar este error, utilice otro tipo o no utilice una matriz fija.

Ejemplo

El código siguiente genera el error CS1663.

// CS1663.cs
// compile with: /unsafe /target:library

unsafe struct C
{
   fixed string ab[10];   // CS1663
}