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