mercredi 24 février 2016

Can I generate a code from an instance in the memory to re-create it later?

Imagine I have an instance with its properties set (which is for instance loaded from the db),

and from this instance in the memory, I want to obtain a code with all the public properties set upon the current values, so that I can use this in my unit tests to re-create the instance.

Is there any trick in VS or any tool that I can make use of?

Thanks

Aucun commentaire:

Enregistrer un commentaire