Example #1
0
 public async Task SaveAsync()
 {
     if (YamlHelper.TrySerialize(this, out string yaml))
     {
         await File.WriteAllTextAsync(ConfigPath, yaml);
     }
 }