Exemple #1
0
            public SettingsSection(XmlNode settingsNode)
            {
                foreach (XmlAttribute attr in settingsNode.Attributes)
                {
                    switch (attr.Name)
                    {
                    case "target": Target = attr.Value; break;

                    default: break;
                    }
                }

                SettingNods = new DynReadOnlyCollection <string, SettingNode>(settingNods = new DynCollection <string, SettingNode>(s => s.Key));
                foreach (XmlNode node in settingsNode)
                {
                    settingNods.Add(new SettingNode(node));
                }
            }
Exemple #2
0
 public DynReadOnlyCollection(DynCollection <K, V> items)
 {
     this.items = items;
 }
Exemple #3
0
 private SettingNode()
 {
     Nods = new DynReadOnlyCollection <string, SettingNode>(nods = new DynCollection <string, SettingNode>(s => s.Key));
 }