摘要: 深度复制就是引用类型的复制浅度复制是值类型的复制例如:using System;using System.Collections.Generic;using System.Text;namespace Test{ public class Content { public int val; }//此处若是深度复制才继承ICloneable接口 //public class Cloner : ICloneable public class Cloner { public Content MyContent = new Content(); public Cloner(int newVal) { 阅读全文
posted @ 2012-10-15 20:07 Mr▪King 阅读(284) 评论(0) 推荐(0) 编辑