public ICollection GetNamespaceListSymbols(NamespaceList list) { ArrayList list2 = new ArrayList(); foreach (XmlQualifiedName name in this.names.Keys) { if ((name != XmlQualifiedName.Empty) && list.Allows(name)) { list2.Add(this.names[name]); } } if (this.wildcards != null) { foreach (string str in this.wildcards.Keys) { if (list.Allows(str)) { list2.Add(this.wildcards[str]); } } } if ((list.Type == NamespaceList.ListType.Any) || (list.Type == NamespaceList.ListType.Other)) { list2.Add(this.last); } return(list2); }
internal bool Allows(XmlQualifiedName qname) { return(namespaceList.Allows(qname.Namespace)); }
public ICollection GetNamespaceListSymbols(NamespaceList list) { ArrayList match = new ArrayList(); foreach(XmlQualifiedName name in names.Keys) { if (name != XmlQualifiedName.Empty && list.Allows(name)) { match.Add(names[name]); } } if (wildcards != null) { foreach(string wildcard in wildcards.Keys) { if (list.Allows(wildcard)) { match.Add(wildcards[wildcard]); } } } if (list.Type == NamespaceList.ListType.Any || list.Type == NamespaceList.ListType.Other) { match.Add(last); // add wildcard } return match; }