标签:改变 tun 怎样 对象 text 保存 color ssi div
return_reason_model model = new return_reason_model(); model.F_RetunrnReason = "1"; HttpContext.Session["Return"] = model; model.F_RetunrnReason = "2"; return_reason_model model2 = HttpContext.Session["Return"] as return_reason_model;
在上述代码中,model2.F_RetunrnReason=?? 答案是“2”
int a = 1; HttpContext.Session["Return"] = a; a = 2; int b = (int)HttpContext.Session["Return"];
在上面代码中,b=?? 答案是1
当保存在Session中的对象,取出后,在外部发生改变时会怎样
标签:改变 tun 怎样 对象 text 保存 color ssi div
原文地址:https://www.cnblogs.com/niuniu1985/p/9342046.html