且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

struct内部的struct指针

更新时间:2022-04-04 02:57:08

您是否要在Interop代码中使用它?收到此消息的原因是因为您正在尝试获取不是 blittable [ ^ ]结构.问题在于数组类型的使用-如果您知道它们的大小,则应该可以执行以下操作:
Are you trying to use this in Interop code? The reason you are getting this is because you are trying to get the address of a structure that is not a blittable[^] structure. The problem lies in the use of the array types - if you know their sizes, you should be able to do something like:
public fixed int[6][5][4] bookings;