标签:des style blog io ar color os sp for
Mark:
//实现IClonable接口并重写Clone方法就可以实现深克隆了 #region ICloneable 成员 public object Clone() { MemoryStream ms = new MemoryStream(); BinaryFormatter bf = new BinaryFormatter(); bf.Serialize(ms, this); ms.Seek(0, 0); object value = bf.Deserialize(ms); ms.Close(); return value;//this.MemberwiseClone(); } #endregion
标签:des style blog io ar color os sp for
原文地址:http://www.cnblogs.com/xachary/p/4157256.html