public static T GetObject <T>(string key) { if (IsolatedStorageSettings.ApplicationSettings.Contains(key)) { return(IsolatedStorageHelper.Deserialize <T>(IsolatedStorageSettings.ApplicationSettings[key].ToString())); } return(default(T)); }
public static void SaveObject <T>(string key, T objectToSave) { string str = IsolatedStorageHelper.Serialize((object)objectToSave); IsolatedStorageSettings.ApplicationSettings[key] = (object)str; }