redmoss
redmoss
CC#
Created by redmoss on 6/8/2024 in #help
How to serialize part of an object with a guid but then deserialize later?
So when I serialize, I only serialize the guid and isFlagged, because name never changes (it gets set when the objec tis constructed). But upon deserializing, I don't know how to recreate the object because I'm missing the name info, so I can't fully reconstruct the object. If I construct the objects then try to change isFlagged on each one, I don't know which ones in my dictioanry correspond to the ones in my deserialized package
8 replies
CC#
Created by redmoss on 6/8/2024 in #help
How to serialize part of an object with a guid but then deserialize later?
Perhaps it's because I'm storing the objects in a list, and I need to store them in a dict indexed by guid instead
8 replies
CC#
Created by redmoss on 6/7/2024 in #help
Additional profiling tools for Visual Studio (or cmdline)?
Ah great, I found the callcounts in instrumentation - thanks
4 replies
CC#
Created by redmoss on 6/6/2024 in #help
Nice ways to partially serialize and deserialize objects?
Awesome, thanks for the pointer
7 replies
CC#
Created by redmoss on 6/6/2024 in #help
Nice ways to partially serialize and deserialize objects?
Ah, yeah, I see. So effectively I'd have a Monster class and a MonsterSerialize that could be a flattened object (since the Monster class may contain nested objects with only particular values I care about) and I use that as an intemediary
7 replies