Hi,
I have a situation where I need to save the state of an object in a database and use that state to repopulate the same object. The four problems are:
I know there must be a better way to do this - anyone got any pointers?
Cheers.
I have a situation where I need to save the state of an object in a database and use that state to repopulate the same object. The four problems are:
- The object contains public and private data that needs to be stored and repopulated.
- Extra properties are added to the object (although it will always be backward compatible). These extra properties will have the defaults set in the objects constructor (so no need to populate them, but the old fields must be populated).
- I have access to the source code of the changing object, but cannot change anything about it.
- Some of the private data is stored in an internal hashtable.
I know there must be a better way to do this - anyone got any pointers?
Cheers.