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

System.Xml.Linq.XText

public class XText : XNode
Represents a text node.
public string Value { get; set; }

Gets or sets the value of this node.

public XText(string value)

Initializes a new instance of the XText class.

public XText(XText other)

Initializes a new instance of the XText class from another XText object.