I have a class that I want to make a deep copy off, however it contains many attributes some of which contains other attributes. Now normally we can use either a clone or serialize method such as seen in How do you do a deep copy an object in .Net (C# specifically)? in order to get a good copy. However in my case several of these attributes come from a library which did not mark anything as either serializable or clonable.
Anybody know how to fix this? Something with reflection? Something efficient?
Aucun commentaire:
Enregistrer un commentaire