serialization - How do I serialise Lambdas and Event delegates when Tombstoning on the Windows Phone 7? -
i've been using game state management sample has worked far. i've hit snag though: when tombstoning, screens serialised; trouble is, messageboxscreen
has event handlers accepted , cancelled.
what's best way serialise these? did bit of research on using expression trees seemed overly complex wanted do.
how serialise these? or... alternative approach use save state of screen contains delegates?
i'd steer clear of attempting serialize remotely resembling lambda, or matter, named methods. remember: you're storing state, , nothing else.
depending on how far , wide various assignments these delegates are, might able away maintaining dictionary<string, whateverdelagatetype>
, serializing keys , looking callbacks after deserialization.
another thing consider--i'm no expert, reading between lines sounds if you're working towards tombstoning temporary modal dialog. want that? might better off bringing user right high scores table, or whatever follows dialog, on his/her return.
Comments
Post a Comment