NamespaceEntity GetTopLevelNamespace(string topLevelName) { GlobalNamespace globalNS = GetGlobalNamespace(); if (globalNS == null) { return(null); } NamespaceEntity entity = (NamespaceEntity)globalNS.GetChild(topLevelName); if (null == entity) { entity = new NamespaceEntity(null, _context.TypeSystemServices, topLevelName); globalNS.SetChild(topLevelName, entity); } return(entity); }