c# - Whats a "shallow copy" of an objects -


possible duplicate:
what difference between deep copy , shallow copy?

i saw today here: http://msdn.microsoft.com/en-us/library/system.web.routing.route.aspx , 1 of member functions was:
"memberwiseclone - creates shallow copy of current object. (inherited object.)"
so whats "shallow copy" verse ... "deep copy"?

shallow copy replaces properties on current level of object, means if have object property have same reference original. not problem if properties value types or primitives of course.


Comments

Popular posts from this blog

javascript - Enclosure Memory Copies -

php - Replacing tags in braces, even nested tags, with regex -