C# Class For Making a Deep Copy Clone of an Arbitrary Object

Submitted by Thomas on Sat, 2006-10-14 09:38.

Here is a C# class that can create a deep copy clone of an arbitrary object. The thing that's special about it is that it should work for any class that extends it, so that you don't need to re-write a custom clone() function for every child class (as it seems the C# framework creators would like). This does a deep copy so be careful about members that recursively include one another.

( categories: )


Submitted by Thomas on Sat, 2006-07-08 03:55.

I've added the old GBA Emulator, CowBite, to my website. To those unfamiliar, CowBite was a project I took up on a whim while in the midst of graduate school. The main purpose of it was to provide a debugging environment for GBA development (it actually had a rudimentary C code debugger built in). Unfortunately I was very overwhelmed at the time - first with my master's project (eventually released to public domain as Orn), and then with my first game industry job at Red Eye Studios. Thus CowBite got off to a good start but was never able to emulate that many games.

Syndicate content