ArrayList arr = new ArrayList();
            arr.Add(new People("A", 10));
            arr.Add(new People("B", 20));
            arr.Add(new People("C", 30));

            ArrayList arr2 = new ArrayList();
            foreach (People p in arr)
            {
                arr2.Add(p.Clone());
            }

 

相关文章: