Creates (or retrieves from cache) an XName.
The namespace, or a Clark-notation string.
The local name (when providing an explicit namespace).
ReadonlynamespaceThe namespace of this name.
ReadonlylocalThe local (unqualified) part of this name.
Returns the namespace URI string of this name.
StaticgetReturns a cached XName for the given namespace and local name, or parses a Clark-notation string.
The namespace, or a string in Clark notation.
The local name (when providing an explicit namespace).
The cached XName instance.
Returns the Clark-notation string for this name, or just the local name when the namespace is empty.
The string representation, e.g. "{urn:example}item" or "item".
Compares this name to another by identity (interned reference equality).
The name to compare against.
true if both names are the same interned instance.
An immutable, interned representation of an XML qualified name.
Remarks
XName instances are cached: two instances for the same namespace and local name are the same object (identity equality). Supports Clark notation:
{http://example.com/ns}localName.Example