共用方式為


編譯器錯誤 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
}