Exemplo n.º 1
0
 public string Load(string defaultValue = null)
 {
     return(File.Exists(FullPath) ? Files.ReadText(FullPath, EncryptionProvider) : defaultValue);
 }
Exemplo n.º 2
0
 public T Load <T>(T defaultValue = default)
 {
     return(File.Exists(FullPath) ? Deserialize <T>(Files.ReadText(FullPath, EncryptionProvider)) : defaultValue);
 }