Archive for the 'snippets' Category

Sep 17 2007

Cloning an Object Using Reflection

Published by Tony under snippets

Here’s a quick and dirty way to do a shallow copy of an object by overriding the clone method of Object. If you want to do deep copying, you’ll have to fidget with this a little more…or maybe I’ll do another blog about doing recursive cloning for deep copying. We’ll see.
Continue Reading »

2 responses so far