internal NamespaceList AddSubNamespace(string name, string fullname) { var list = new NamespaceList(name, fullname); m_SubNamespaces.Add(list); return(list); }
public bool TryGetSubList(string name, ref NamespaceList list) { foreach (var s in m_SubNamespaces) { if (s.Name == name) { list = s; return(true); } } return(false); }
internal NamespaceList GetOrCreateSubNamespace(string name) { NamespaceList sub = null; if (this.TryGetSubList(name, ref sub)) { return(sub); } var list = new NamespaceList(name, this.FullName + '.' + name); m_SubNamespaces.Add(list); return(list); }