public class CloneHandle { ////// 实现对象的深拷贝 /// ///对象类型 /// 对象 ///T public static T CreateDeepCopy(T obj) { T t; MemoryStream memoryStream = new MemoryStream(); BinaryFormatter formatter = new BinaryFormatter(); formatter.Serialize(memoryStream, obj); memoryStream.Position = 0; t = (T)formatter.Deserialize(memoryStream); return t; } }