I want to know about the concept of deep copy in .NET? Can someone let me know about this if possible with a example on this concept.
Printable View
I want to know about the concept of deep copy in .NET? Can someone let me know about this if possible with a example on this concept.
A deep copy of an object duplicates everything directly or indirectly referenced by the fields in the object. Deep copy is also called as member-wise copy. A deep copy creates a new reference to a new object.
In a deep copy, each item is completely cloned, and a fresh structure is created for the new copies.