public MemorySection(ISection section, string name = null) { Name = name ?? section.GetName(); Dict = new Dictionary <string, object>(section.GetKeys()); // shallow copy }
public ConfigSection(ISection section, string name = null) : this(name ?? section.GetName(), section.GetKeys()) { }
public ConfigBase(ISection section, string filePath) { Name = filePath.Substring(filePath.LastIndexOf(Path.DirectorySeparatorChar)); _filePath = filePath; Dict = new Dictionary <string, object>(section.GetKeys()); }