平台调用关与结构中嵌套结构数组参数、动态数组的封装
[StructLayout(LayoutKind.Sequential)]
public struct Point {
public int x;
public int y;
//动态数组
[ MarshalAs( UnmanagedType.ByValTStr, SizeConst=3 )]
public string Str;
//这里怎么写结构数组参数
public struct A a;
}
[StructLayout(LayoutKind.Sequential)]
public struct A
{
public int i;
[ MarshalAs( UnmanagedType.ByValTStr, SizeConst=3 )]
public string str;
}