排名
100
文章
2
粉丝
0
评论
0
ICP备案 :渝ICP备18016597号-1
网站信息:2018-2025TNBLOG.NET
技术交流:群号656732739
联系我们:contact@tnblog.net
公网安备:
50010702506256


欢迎加群交流技术

public class DepthClone<T> {
public virtual T Clone() {
var memory = new MemoryStream();
var formatter = new BinaryFormatter();
formatter.Serialize(memory, this);
memory.Position = 0;
return (T)formatter.Deserialize(memory);
}
}
评价