Esempio n. 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));
                }
            }
Esempio n. 2
0
 private SettingNode()
 {
     Nods = new DynReadOnlyCollection <string, SettingNode>(nods = new DynCollection <string, SettingNode>(s => s.Key));
 }