<PackageReference Include="NETStandard.Library" Version="2.0.3" />

System.Xml.Linq.XObject

public abstract class XObject : IXmlLineInfo
public string BaseUri { get; }

public XDocument Document { get; }

public abstract XmlNodeType NodeType { get; }

public XElement Parent { get; }

public void AddAnnotation(object annotation)

public object Annotation(Type type)

public T Annotation<T>()

public IEnumerable<object> Annotations(Type type)

public IEnumerable<T> Annotations<T>()

public void RemoveAnnotations(Type type)

public void RemoveAnnotations<T>()