59 for (
int i = 0; i <
array.Length; i++)
61 if (
array[i] ==
"##local")
63 _set[
string.Empty] =
string.Empty;
66 if (
array[i] ==
"##targetNamespace")
86 public virtual bool Allows(
string ns)
99 return _set[ns] !=
null;
136 else if (
key.Length == 0)
166 return !
sub._set.Contains(
super._targetNamespace);
168 foreach (
string key in sub._set.Keys)
194 foreach (
string key in o2._set.Keys)
211 return namespaceList;
229 return other.Clone();
267 foreach (
string key in o1._set.Keys)
269 if (
o2._set.Contains(
key))
277 if (
o1._targetNamespace ==
o2._targetNamespace)
283 if (
o1._targetNamespace ==
string.Empty)
287 else if (
o2._targetNamespace ==
string.Empty)
293 return namespaceList;
virtual bool Contains(object key)
virtual void Remove(object key)
virtual void Add(object key, object? value)
static bool IsSubset(NamespaceList sub, NamespaceList super)
override string ToString()
void RemoveNamespace(string tns)
static NamespaceList Intersection(NamespaceList o1, NamespaceList o2, bool v1Compat)
static NamespaceList Union(NamespaceList o1, NamespaceList o2, bool v1Compat)
NamespaceList CompareSetToOther(NamespaceList other)
readonly string _targetNamespace
NamespaceList(string namespaces, string targetNamespace)
virtual bool Allows(string ns)
bool Allows(XmlQualifiedName qname)
static string[] SplitString(string value)
static Uri ToUri(string s)