What is Shallow Copy and Deep Copy in .NET?
Shallow copy:When a object creating and copying nonstatic field of the current object to the new object know as shallow copy.
If a field is a value type --> a bit-by-bit copy of the field is performed
a reference type --> the reference is copied but the referred object is not; therefore, the original object and its clone refer to the same object.
Deep copy:Deep cooy little same as shallow copy,deep copy the whole object and make a different object, it means it do not refer to the original object while in case of shallow copy the target object always refer to the original object and changes in target object also make changes in original object.