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