isolatedstorage - Store WP state on phone -
i want store state of app on phone recreate when app starts again.
the problem need store things idictionary<string, object>
includes kind of types. there way this?
i don't want every type manually, doing now. converting every type json, , save string. need file system on phone like
myapp \\ jobjects \\ asd.json myapp \\ dictionary_string_int \\ asd2.json
...etc., can type of original object later on , can call
deserialze< idictionary<string, int> >(..)
example
and that's painful. every time want store new type, have implement method first , test it. , objects idicionary< string, idicitionary<string, object>>
particulary painful.
you can use isolated storage save , read deserialized xml separate files. check out tutorial on using it:
http://www.geekchamp.com/tips/all-about-wp7-isolated-storage---read-and-save-xml-files
the article wp7, works in wp8. think it's referred local folder in wp8, code should work same.
Comments
Post a Comment