AutoWikiBrowser.Plugins.Kingbotk.PluginManager.WriteXML C# (CSharp) Method

WriteXML() private static method

private static WriteXML ( XmlTextWriter writer ) : void
writer System.Xml.XmlTextWriter
return void
        private static void WriteXML(XmlTextWriter writer)
        {
            System.Collections.Specialized.StringCollection strGenericTemplates =
                new System.Collections.Specialized.StringCollection();
            int i = 0;

            writer.WriteAttributeString(ShowManualAssessmentsInstructions,
                _showManualAssessmentsInstructions.ToString());
            _pluginSettings.WriteXML(writer);
            foreach (KeyValuePair<string, PluginBase> plugin in Plugins)
            {
                plugin.Value.WriteXML(writer);
                plugin.Value.WriteXMLRedirects(writer);
                if (plugin.Value.AmGeneric)
                {
                    strGenericTemplates.Add(((IGenericTemplatePlugin) plugin.Value).GenericTemplateKey);
                }
            }

            writer.WriteAttributeString(GenericTemplatesCount, strGenericTemplates.Count.ToString(CultureInfo.InvariantCulture));

            foreach (string str in strGenericTemplates)
            {
                writer.WriteAttributeString(GenericTemplate + i, str);
                i++;
            }
        }