List<Hashtable> HashList = (List<Hashtable>)Session["ary"];
int StepID = Convert.ToInt32(ViewState["StepID"].ToString());
for (int i = 0; i < HashList.Count; i++)
{
if (ViewState["StepID"].ToString() == HashList[i]["stepId"].ToString())
{
StepID = i;
break;
}
}
Hashtable HashListDetail = HashList[StepID];
HashListDetail = ht;
想把ht更新到session中,可是不行,这样只能更新HashListDetail,
引用类型不是指向同一内存地址吗?我感觉应该会一起更新啊,求解答
九州编程
慕后森