Boo.Lang.Compiler.Steps.ResolveImports.AddCachedNamespace C# (CSharp) Метод

AddCachedNamespace() приватный Метод

private AddCachedNamespace ( INamespace parentNamespace, string name, IEntity value ) : void
parentNamespace INamespace
name string
value IEntity
Результат void
        private void AddCachedNamespace(INamespace parentNamespace, string name, IEntity value)
        {
            Dictionary<string, IEntity> subcache;
             if (!_cache.TryGetValue(parentNamespace, out subcache))
             {
             	subcache = new Dictionary<string, IEntity>();
             	_cache.Add(parentNamespace, subcache);
             }
             subcache.Add(name, value);
        }