public string pkID
{
get{return c_pkID;}
set{c_pkID = value;}
}
public string CategoryName
{
get{return c_categoryname;}
set{c_categoryname = value;}
}
}
SubDirObject s = new SubDirObject();
s.pkID="12";
s.CategoryName="My Sub Directory";
OurArrayList.Add(s);
public void CreateSelectList(
f*****e 发帖数: 5177
2
SubDirObject obj = (SubDirObject)OurArrayList[i];
【在 a*******t 的大作中提到】 : found this example online: : http://www.superdotnet.com/Article.aspx?ArticleID=139 : public class SubDirObject : { : protected string c_pkID; : protected string c_categoryname; : : public string pkID : { : get{return c_pkID;}