Пример #1
0
 public static T GetObject <T>(string key)
 {
     if (IsolatedStorageSettings.ApplicationSettings.Contains(key))
     {
         return(IsolatedStorageHelper.Deserialize <T>(IsolatedStorageSettings.ApplicationSettings[key].ToString()));
     }
     return(default(T));
 }
Пример #2
0
        public static void SaveObject <T>(string key, T objectToSave)
        {
            string str = IsolatedStorageHelper.Serialize((object)objectToSave);

            IsolatedStorageSettings.ApplicationSettings[key] = (object)str;
        }