Boo.Lang.Compiler.TypeSystem.GlobalNamespace.GetChild C# (CSharp) Méthode

GetChild() public méthode

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

Usage Example

        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);
        }