public void WriteContent(XmlWriter writer, Configuration config, ConfigurationSaveMode mode, bool writeElem) { foreach (ConfigInfoCollection col in new object[] { Sections, Groups }) { foreach (string key in col) { ConfigInfo cinfo = col [key]; if (cinfo.HasDataContent(config)) { cinfo.WriteData(config, writer, mode); } } } }
public override bool HasDataContent(Configuration config) { foreach (ConfigInfoCollection col in new object[] { Sections, Groups }) { foreach (string key in col) { ConfigInfo cinfo = col [key]; if (cinfo.HasDataContent(config)) { return(true); } } } return(false); }