private void InternalLoad(XDocument document) { // TODO: Better XML validation on the NodeTypeTable load NodeTypeEntry nodeTypeEntry; foreach (XElement node in document.Root.Elements()) { nodeTypeEntry = new NodeTypeEntry(); nodeTypeEntry.Namespace = node.Attribute(NamespaceAttributeName).Value; nodeTypeEntry.Assembly = node.Attribute(AssemblyAttributeName).Value; foreach (XElement child in node.Elements()) { _nodeTypes.Add(child.Attribute(NodeNameAttributeName).Value.ToLower(), nodeTypeEntry); } } }
public bool TryGetValue(string nodeName, out NodeTypeEntry entry) { return(_nodeTypes.TryGetValue(nodeName, out entry)); }