struct stringStruct
{
private string theKey;
private string theValue;
public stringStruct(string thekey)
{
this.theKey = thekey;
} public string TheKey
{
get { return theKey; }
}
public string TheValue
{
get { return theValue; }
set { theValue = value; }
}
}
像这段代码他会报错:
在控制离开构造函数之前,字段“voteBBS.Model.intStruct.theValue”必须完全赋值
请大家说说原因
{
private string theKey;
private string theValue;
public stringStruct(string thekey)
{
this.theKey = thekey;
} public string TheKey
{
get { return theKey; }
}
public string TheValue
{
get { return theValue; }
set { theValue = value; }
}
}
像这段代码他会报错:
在控制离开构造函数之前,字段“voteBBS.Model.intStruct.theValue”必须完全赋值
请大家说说原因
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货