IsolatedStorageHelper is very simple to use:
IsolatedStorageHelper.SaveSerializableObject<List<RssItem>>(Favorites, "favorites.xml");

// ...

try
{
    var Favorites = IsolatedStorageHelper.LoadSerializableObject<List<RssItem>>("favorites.xml");
}
catch (System.IO.FileNotFoundException)
{
    Favorites = new List<RssItem>();
}

IsolatedStorageHelper uses System.Runtime.Serialization to serialize/deserialize objects in/from file.
For more information about serialization see MSDN article

Last edited Apr 2, 2012 at 4:24 AM by ad1Dima, version 5

Comments

No comments yet.