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)); } }
public DynReadOnlyCollection(DynCollection <K, V> items) { this.items = items; }
private SettingNode() { Nods = new DynReadOnlyCollection <string, SettingNode>(nods = new DynCollection <string, SettingNode>(s => s.Key)); }