private void GeneratePlugin <T>(ProjectPluginParameters parameters, PluginManager <T> manager, List <T> container) where T : IPlugin { foreach (KeyValuePair <string, Dictionary <string, string> > key in parameters) { T generator = manager.Get(key.Key); generator.SetParameters(key.Value); container.Add(generator); } }
private void ParsePlugin(XmlNode node, ProjectPluginParameters pluginParameters) { foreach (XmlNode child in node.ChildNodes) { if (child is XmlComment) { continue; } pluginParameters.Add(new KeyValuePair <string, Dictionary <string, string> >(child.Attributes["name"].Value, GetPlugins(child))); } }
private void ParsePlugin( XmlNode node, ProjectPluginParameters pluginParameters ) { foreach( XmlNode child in node.ChildNodes ) { if( child is XmlComment ) { continue; } pluginParameters.Add( new KeyValuePair<string, Dictionary<string, string>>( child.Attributes["name"].Value, GetPlugins( child ) ) ); } }