unsafe public struct RAIN_COORDLINE
{
public fixed int horline[111]; //111条水平线的纵坐标
public fixed int verline[154]; //154条竖直线的横坐标
}
RAIN_COORDLINE rc =new RAIN_COORDLINE();
赋值的时候
rc.horline[0] = log.Horline[0];
编译通不过,提示:
不能使用非固定表达式中包含的固定大小缓冲区。请尝试使用 fixed 语句。