internal MSBuildItem GetItem (XmlElement elem) { MSBuildObject ob; if (elemCache.TryGetValue (elem, out ob)) return (MSBuildItem) ob; MSBuildItem it = new MSBuildItem (elem); elemCache [elem] = it; return it; }
public void MergeFrom (MSBuildItem other) { foreach (XmlNode node in Element.ChildNodes) { if (node is XmlElement) SetMetadata (node.LocalName, node.InnerXml, true); } }
public void RemoveItem (MSBuildItem item) { elemCache.Remove (item.Element); XmlElement parent = (XmlElement) item.Element.ParentNode; item.Element.ParentNode.RemoveChild (item.Element); if (parent.ChildNodes.Count == 0) { elemCache.Remove (parent); parent.ParentNode.RemoveChild (parent); bestGroups = null; } }