Question

I am trying to develop xaml app for Windows Store. During development I faced a problem. I want to save a generic list of object to the local store but each time I try to save the list, it fires an exception of "type not supported".

Can anybody help me out on saving and restoring generic list in the localstore in windows 8 app.

Was it helpful?

Solution

Take a look on this article Accessing app data with the Windows Runtime (Windows Store apps), you cannot store in App Settings anything except Windows Runtime base types. I tried to approaches for myself: a) use serialization with JSON.net, serialize data to file on suspending and restore it on startup. b) use sqlite and sqlite-net to just use simple db in my app.

OTHER TIPS

Thank you everyone for the suggestion.

I got the solution by first serializing data to jsonstring and saving the serialized data as string in the storage and restoring the data using deserialization..

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top