标签:ecif turn des form specific int obj 深拷贝 cal
public static T DeepClone<T>(T obj) { using (var ms = new MemoryStream()) { var formatter = new BinaryFormatter(); formatter.Serialize(ms, obj); ms.Position = 0; return (T) formatter.Deserialize(ms); } }
http://stackoverflow.com/questions/129389/how-do-you-do-a-deep-copy-of-an-object-in-net-c-specifically
标签:ecif turn des form specific int obj 深拷贝 cal
原文地址:http://www.cnblogs.com/kevin1988/p/6822106.html