Pages

Monday 23 July 2012

Serializing and deseralizing objects using XMLSerializer to StorageFile and LocalFolder using generics and async/await threading

This one was a hard one! I just couldn’t find ANY working examples of how to serialize and deserialize objects to local storage or local file. And it should be so simple, right? Well, here is an example app as always – enjoy :)

Serializing and deseralizing objects using XMLSerializer to StorageFile and LocalFolder using generics and async/await threading
Serializing and deseralizing objects to local storage/ local file using generics and async/await threading

Problem:
Your app has to work offline as well and you are looking for a way to store smaller amount of data. You would like to serialize objects to a the local storage in a local file.

Some requriements applicable from Application Profile Survey:
Networking: behaves well offline and while on intermittent internet connection…
Performance: rely on local data as much as possible…

The sample app can be downloaded here
Read full article here

No comments:

Post a Comment

Web Informer Button