Exemplo n.º 1
0
        internal IConfigSource TryGetSource(TPath path)
        {
            path.CheckNotNull(nameof(path));

            var cfgTable = this.persistable.LoadSourcesTable();
            var source   = path.TryApply(cfgTable) as TomlSource;

            return(source?.Value);
        }
Exemplo n.º 2
0
        internal bool Clear(TPath path)
        {
            var ste = path.TryApply(this.persistable.LoadSourcesTable()) as TomlSource;

            if (ste == null)
            {
                return(false);
            }

            return(this.Clear(path, ste.Value));
        }