Site Feed

Thursday, March 03, 2005

Deep Copy Objects Using Serialization

Creating duplicates of objects in memory can be complicated. Consider the following code snippet written by Michael Ames.

Copying, Cloning, and Marshalling in .NET

Copying, Cloning, and Marshalling in .NET by Shawn Van Ness -- Even after spending the last few years with the C# language, Shawn Van Ness recently found it worthwhile to step back and analyze what happens in some very simple scenarios, such as copying a value from one variable to another, or passing those variables as arguments to a method call. And that is the focus of this article.