Boo.Lang.Compiler.TypeSystem.GlobalNamespace.GetChild C# (CSharp) Method

GetChild() public method

public GetChild ( string name ) : INamespace
name string
return INamespace
        public INamespace GetChild(string name)
        {
            return (INamespace)_children[name];
        }

Usage Example

Example #1
0
        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);
        }