Exemplo n.º 1
0
        public NamespaceBinding GetChildNamespace(string name)
        {
            NamespaceBinding binding = (NamespaceBinding)_childrenNamespaces[name];

            if (null == binding)
            {
                binding = new NamespaceBinding(_bindingManager, _name + "." + name);
                _childrenNamespaces[name] = binding;
            }
            return(binding);
        }
Exemplo n.º 2
0
        internal IBinding Resolve(string name, Assembly assembly)
        {
            NamespaceBinding binding = (NamespaceBinding)_childrenNamespaces[name];

            if (null != binding)
            {
                return(new AssemblyQualifiedNamespaceBinding(assembly, binding));
            }

            ArrayList types = (ArrayList)_assemblies[assembly];

            if (null != types)
            {
                foreach (Type type in types)
                {
                    if (name == type.Name)
                    {
                        return(_bindingManager.ToTypeReference(type));
                    }
                }
            }
            return(null);
        }
Exemplo n.º 3
0
 public AssemblyQualifiedNamespaceBinding(Assembly assembly, NamespaceBinding subject)
 {
     _assembly = assembly;
     _subject  = subject;
 }