public NamespaceBinding GetChildNamespace(string name) { NamespaceBinding binding = (NamespaceBinding)_childrenNamespaces[name]; if (null == binding) { binding = new NamespaceBinding(_bindingManager, _name + "." + name); _childrenNamespaces[name] = binding; } return(binding); }
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); }
public AssemblyQualifiedNamespaceBinding(Assembly assembly, NamespaceBinding subject) { _assembly = assembly; _subject = subject; }