Exemplo n.º 1
0
 public void Load()
 {
     using (StreamReader stream = new StreamReader(File.OpenRead(_fileName)))
     {
         _data = (LocalStorageData)JsonSerializer
                 .Deserialize(stream.ReadToEnd(), typeof(LocalStorageData));
     }
 }
Exemplo n.º 2
0
 private LocalStorage()
 {
     _data = new LocalStorageData();
 }