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