Compiler Error CS1663
Fixed size buffer type must be one of the following: bool, byte, short, int, long, char, sbyte, ushort, uint, ulong, float or double
A fixed sized buffer may not be any type other than those listed. To avoid this error, use another type or do not use a fixed array.
The following sample generates CS1663.
C#
// CS1663.cs
// compile with: /unsafe /target:library
unsafe struct C
{
fixed string ab[10]; // CS1663
}
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
.NET feedback
.NET is an open source project. Select a link to provide feedback: