C ++将二维数组构造为C#[duplicate]

问题描述

||                                                                                                                   这个问题已经在这里有了答案:                                                      

解决方法

        大小应为商品中元素的数量。
 struct BIRDMATRIX
 {
    [MarshalAs(UnmanagedType.ByValArray,SizeConst = 9)]
    short[,] n;
 }