项目作者: jchoker

项目描述 :
Shallow and Deep copy in .Net demystified
高级语言: C#
项目地址: git://github.com/jchoker/ShallowAndDeepCopy.git
创建时间: 2020-07-11T17:36:00Z
项目社区:https://github.com/jchoker/ShallowAndDeepCopy

开源协议:

下载


Shallow and Deep Copy in .Net

The purpose of this repository is to demonstrate the difference between shallow and deep copy in .Net, how would you implement each one, and when would you use one over the other.

The solution contains 2 projects:

1-ShallowAndDeepCopy provides a custom class that implements the ShallowCopy and DeepCopy methods. This class is used as a demo in the 2nd project.

2-Tests uses the 1st project to demonstrate how each copy method is different from the other and helps decide which type of copy to use in a production scenario.