internal virtual void ProcessBrowserNode(XmlNode node, System.Web.Configuration.BrowserTree browserTree) { BrowserDefinition definition = null; if (node.Name == "gateway") { definition = new GatewayDefinition(node); } else if (node.Name == "browser") { definition = new BrowserDefinition(node); } else { definition = new BrowserDefinition(node, true); } BrowserDefinition definition2 = (BrowserDefinition) browserTree[definition.Name]; if (definition2 != null) { if (!definition.IsRefID) { throw new ConfigurationErrorsException(System.Web.SR.GetString("Duplicate_browser_id", new object[] { definition.ID }), node); } definition2.MergeWithDefinition(definition); } else { browserTree[definition.Name] = definition; } }
internal virtual void ProcessBrowserNode(XmlNode node, BrowserTree browserTree) { BrowserDefinition browserInfo = null; if (node.Name == "gateway") { browserInfo = new GatewayDefinition(node); } else if (node.Name == "browser") { browserInfo = new BrowserDefinition(node); } else { Debug.Assert(node.Name == "defaultBrowser"); browserInfo = new BrowserDefinition(node, true); } BrowserDefinition oldNode = (BrowserDefinition)browserTree[browserInfo.Name]; if (oldNode != null) { if (browserInfo.IsRefID) { oldNode.MergeWithDefinition(browserInfo); } else { throw new ConfigurationErrorsException(SR.GetString(SR.Duplicate_browser_id, browserInfo.ID), node); } } else { browserTree[browserInfo.Name] = browserInfo; } }