谁能帮我解释解释这句话是干什么的........
private int index
{
get
{
object o = ViewState["index "];
return (o == null) ? 600 : (int)o;
}
set
{
ViewState["index "] = value;
}
}
求解释
------解决方案--------------------
getter,stter,属性
ViewState 获取状态信息的字典
(o == null) ? 600 : (int)o;如果o是null则去600,否则去(int)o
就是取值赋值