easy way to implement deep cloning C#
This question already has an answer here:
Implement DeepClone as an extension method of your base class, probably using reflection. If you don't have a single base class then define the extension method on an interface and apply that to your base classes.
A more interesting question is why you want to clone whole object graphs. Is this some sort of factory pattern?
链接地址: http://www.djcxy.com/p/40782.html上一篇: BufferedImage:用相同的数据提取子图像
下一篇: 简单的方法来实现深层克隆C#