【发布时间】:2010-11-08 11:16:44
【问题描述】:
如何声明具有固定大小数组的结构?
我找到了解决方案,但它只适用于原始数据类型。我需要我的数组类型为MyStruct。
那么如何声明一个包含其他结构数组的结构呢?
例如
unsafe struct Struct1{
fixed int arrayInt[100]; // works properly
fixed Struct2 arrayStruct[100]; //not compile
}
【问题讨论】: