コード例 #1
0
ファイル: MergeConfigStore.cs プロジェクト: zanedp/Nett
 private TomlTable LoadInternal(IConfigSource source, out IConfigStoreWithSource cfg)
 {
     cfg = this.stores.Single(c => c.CanHandleSource(source));
     return(cfg.Load());
 }
コード例 #2
0
ファイル: Config.cs プロジェクト: mvacha/Nett
 private static MergeConfigStore CreateMergeStore(IConfigStoreWithSource store)
 => new MergeConfigStore(new List <IConfigStoreWithSource>()
 {
     store
 });
コード例 #3
0
ファイル: MergeConfigStore.cs プロジェクト: zanedp/Nett
        public void Save(TomlTable table, IConfigSource source)
        {
            IConfigStoreWithSource cfg = this.stores.Single(c => c.CanHandleSource(source));

            cfg.Save(table);
        }