Microsoft .NET Framework, ASP.NET, Visual C# (CSharp, C Sharp, C-Sharp) Developer Training, Visual Studio
| Term
| Shallow copy
|
| Definition
| Refers to a method of cloning—copying—an object in which the clone may be associated to data shared by both the original and the copy. Thus, the original and the clone will both reference the same instances of any objects referenced by the original. In other words, a shallow copy contains copies only of instance variables but not of any objects pointed to by reference variables.
|
| See also
| Deep copy
|
| This C# Online.NET definition is from the Glossary of .NET / C# Terms.
|