Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- string localData = ObjectSerializer<myObject>.Serialize(_myObject);
- if (!string.IsNullOrEmpty(localData))
- {
- StorageFile localFile = await ApplicationData.Current.LocalFolder.CreateFileAsync("Data.xml", CreationCollisionOption.ReplaceExisting);
- await FileIO.WriteTextAsync(localFile, localData);
- }
- public interface ILocalDataService {
- Task SaveToLocal(string localData, string filename)
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement