public struct File_Pa
{
public struct NumOfTreatmentUnits
{
public string Name;
public TreatmentUnit[] Ttreatmentunit;
}
}
public struct TreatmentUnit {..}结构是上面这样 我怎么创建对象并且赋值 我是说数组 假设已经知道数组大小2维
{
public struct NumOfTreatmentUnits
{
public string Name;
public TreatmentUnit[] Ttreatmentunit;
}
}
public struct TreatmentUnit {..}结构是上面这样 我怎么创建对象并且赋值 我是说数组 假设已经知道数组大小2维
File_Pa.TreatmentUnit[] ta = tt.Ttreatmentunit;
上面是别人交的 但是有错误: 找不到类型或命名空间名称“File_pa”(是否缺少 using 指令或程序集引用?)
无法将类型“TreatmentUnit[]”隐式转换为“File_pa.TreatmentUnit[]”
TreatmentUnit[] tts = new TreatmentUnit[10];
tt.Ttreatmentunit = tts;