<PackageReference Include="System.Xml.XDocument" Version="4.0.11-beta-23409" />

System.Xml.Linq.XName

public sealed class XName : IEquatable<XName>
Represents a name of an XML element or attribute.
public string LocalName { get; }

Gets the local (unqualified) part of the name.

public XNamespace Namespace { get; }

Gets the namespace part of the fully qualified name.

public string NamespaceName { get; }

Returns the URI of the XNamespace for this XName.

public static XName Get(string expandedName)

Gets an XName object from an expanded name.

public static XName Get(string localName, string namespaceName)

Gets an XName object from a local name and a namespace.

public static bool op_Equality(XName left, XName right)

Returns a value indicating whether two instances of XName are equal.

public static XName op_Implicit(string expandedName)

Converts a string formatted as an expanded XML name (that is,{namespace}localname) to an XName object.

public static bool op_Inequality(XName left, XName right)

Returns a value indicating whether two instances of XName are not equal.