C
C#8mo ago
OkOk

❔ Possible to copy value of object in debugger and generate code which will recreate this object

I have an awfully complicated class and wish I could copy an object in the debugger, and use that data to auto-generate code which will recreate the exact instance of this class. I believe this has a good use-case for my code-base. Is there some functionality that does this that I'm not aware of?
No description
2 Replies
Bailey
Bailey8mo ago
HI, As far as i Know there isn't an option. maybe a work around use a serialiser to serialese the object and ofcourse deserialese to fill the object as long as you are busy in the debugger you probably can use it
Accord
Accord8mo ago
Looks like nothing has happened here. I will mark this as stale and this post will be archived until there is new activity.