如何将一个对象从一个list转移到另一个list中
例如:程序代码:
class Program { static void Main(string[] args) { ArrayList peolist1=new ArrayList(); //list1 ArrayList peolist2=new ArrayList(); //list2 People peo = new People(); //people对象 peo.ID = 1; peolist1.Add(peo); //添加到list1中 peo.Move(peolist1, peolist2); //移动到list2中??? } } //People的类, public class People { public int ID; /// <summary> /// 将people对象从list1移到list2中 /// 删除list1中的对象 /// </summary> /// <param name="list1"></param>所在list /// <param name="list2"></param>目标list public void Move(ArrayList list1,ArrayList list2) { ///////////// //如何实现!!!!??? ///////////// } }请高手指点一二,拜谢!!!