[StructLayout(LayoutKind.Sequential)]
public struct STRUC
{
public int Min;
public int Max;
public int[,] Para=new int[4,4]; //这里编译不通过 cannot have instance field initializers in structs
}
public struct STRUC
{
public int Min;
public int Max;
public int[,] Para=new int[4,4]; //这里编译不通过 cannot have instance field initializers in structs
}
比如为int max = 赋值... 数组初始化维度了..默认应该是有值的...那就错了.