怎样从arraylist中读取类的属性?
ricbo 2004-03-07 03:28:25 建立了这个类
public class test
{
public test(string ll)
{
this.A=ll;
}
private string A;
public string a
{
get{return A;}
}
}
在窗体总
使用ArrayList array=new ArrayList();
array.Add(new test("a"));
array.Add(new test("b"));
那么我怎么才能读取出"b"把它赋给sting str 呢?