另外,我的PDSAListItemNumeric类是这样写的,是不是有错呢?namespace WindowsApplication1
{
class PDSAListItemNumeric
{
private string mstrValue;
private int mintID;
public PDSAListItemNumeric()
{
}
public PDSAListItemNumeric(string strValue, int intID)
{
mstrValue = strValue;
mintID = intID;
}
public string value
{
get
{
return mstrValue;
}
set
{
mstrValue = value;
}
}
public int ID
{
get
{
return mintID;
}
set
{
mintID = value;
}
}
public override string ToString()
{
return mstrValue;
}
}
}
{
class PDSAListItemNumeric
{
private string mstrValue;
private int mintID;
public PDSAListItemNumeric()
{
}
public PDSAListItemNumeric(string strValue, int intID)
{
mstrValue = strValue;
mintID = intID;
}
public string value
{
get
{
return mstrValue;
}
set
{
mstrValue = value;
}
}
public int ID
{
get
{
return mintID;
}
set
{
mintID = value;
}
}
public override string ToString()
{
return mstrValue;
}
}
}
类型转换的错误自己看看就明白了