ArrayList question# DotNet - 窗口里的风景
a*t
1 楼
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;}
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(
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;}
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(