关于属性2
如果
public struct JyotyoJyohou_M
{
public decimal dcMkg0;
public decimal dcMkg1;
public decimal dcMkg2;
public void InitstJyotyoM()
{
dcMkg0 = 0;
dcMkg1 = 0;
dcMkg1 = 0;
}
}
public decimal[] GSJMdcMkg0;
public decimal[] GSJMdcMkg0
{
get
{
return stJyotyoM[a].dcMkg0;
}
set
{
}
}
上面的代码在类c中
c cc=new c();
c.GSJMdcMkg0[a]=12;
我在调用GSJMdcMkg0时怎样把a,传进来?
怎么办?新手
------解决方案--------------------decimal [] test = new decimal[] {0.0,0.0...}
c.GSJMdcMkg0[a] = test;