public ReflectionNamespace GetNamespace(string ns) { if (ns.Length == 0) { return(_root); } string[] namespaceHierarchy = ns.Split('.'); ReflectionNamespace current = _root; foreach (string namespacePart in namespaceHierarchy) { current = current.Produce(namespacePart); } return(current); }