protected virtual DefType CreateExplicitContainerType(string container, string key, string val) { string stdcont = "std::" + container; XmlDocument doc = new XmlDocument(); XmlElement elem = doc.CreateElement("typedef"); elem.SetAttribute("basetype", stdcont); elem.SetAttribute("name", stdcont); XmlElement te = doc.CreateElement("type"); te.InnerText = val; elem.AppendChild(te); if (key != "") { te = doc.CreateElement("type"); te.InnerText = key; elem.InsertAfter(te, null); } return(DefTypeDef.CreateExplicitType((DefTypeDef)DefType.CreateType(elem))); }