.net 实现深拷贝的方法
using System;
using System.Collections.Generic;
using System.Text;
using System.Collections;

namespace WindowsApplication3
{
   public class MyType:ICloneable
    {
       ArrayList set;
       
       public MyType(ArrayList set)
       {
           this.set = (ArrayList) set.Clone();
       }
       
       public object Clone()
       {
           return new ArrayList(set);
       }
    }
}
posted on 2008-10-11 15:20  Jack.Wang  阅读(1019)  评论(0编辑  收藏  举报