39 if (localName ==
null)
43 return GetName(localName, 0, localName.Length);
92 return (
object)left == right;
97 return (
object)left != right;
124 if (
count ==
"http://www.w3.org/XML/1998/namespace".Length &&
string.CompareOrdinal(
namespaceName,
index,
"http://www.w3.org/XML/1998/namespace", 0,
count) == 0)
128 if (
count ==
"http://www.w3.org/2000/xmlns/".Length &&
string.CompareOrdinal(
namespaceName,
index,
"http://www.w3.org/2000/xmlns/", 0,
count) == 0)
147 if (
r ==
null || !
r.TryGetTarget(
out var target))
151 return target.NamespaceName;
static int CompareExchange(ref int location1, int value, int comparand)
static WeakReference< XNamespace > s_refXmlns
static XNamespace EnsureNamespace(ref WeakReference< XNamespace > refNmsp, string namespaceName)
static XName operator+(XNamespace ns, string localName)
override string ToString()
override int GetHashCode()
static bool operator!=(XNamespace? left, XNamespace? right)
static string ExtractLocalName(XName n)
static WeakReference< XNamespace > s_refNone
static XNamespace Get(string namespaceName, int index, int count)
readonly string _namespaceName
static XNamespace Get(string namespaceName)
static string ExtractNamespace(WeakReference< XNamespace > r)
XNamespace(string namespaceName)
XName GetName(string localName, int index, int count)
static bool operator==(XNamespace? left, XNamespace? right)
XName GetName(string localName)
static WeakReference< XNamespace > s_refXml
readonly XHashtable< XName > _names
override bool Equals([NotNullWhen(true)] object? obj)
static XHashtable< WeakReference< XNamespace > > s_namespaces