Method
XmlNodeExtensions.WithContent<TXmlNode>
WithContent<TXmlNode>(TXmlNode, Action<TXmlNode>) #
Specifies children contents for this INode.
public static TXmlNode WithContent<TXmlNode>(this TXmlNode node, Action<TXmlNode> selector) where TXmlNode : INodeParameters #
node TXmlNode
The current INode.
selector Action<TXmlNode>
The action which will be executed in the self INode.
Returns #
TXmlNode
The self INode object for fluent chaining.
Type Parameters #
TXmlNode
The object type which implements INode.
WithContent<TXmlNode>(TXmlNode, object?) #
Specifies children contents for this INode.
public static TXmlNode WithContent<TXmlNode>(this TXmlNode node, object? contents) where TXmlNode : INodeParameters #
node TXmlNode
The current INode.
contents object?
The children object.
Returns #
TXmlNode
The self INode object for fluent chaining.
Type Parameters #
TXmlNode
The object type which implements INode.
WithContent<TXmlNode>(TXmlNode, string?) #
Specifies children contents for this INode.
public static TXmlNode WithContent<TXmlNode>(this TXmlNode node, string? contents) where TXmlNode : INodeParameters #
node TXmlNode
The current INode.
contents string?
The children object.
Returns #
TXmlNode
The self INode object for fluent chaining.
Type Parameters #
TXmlNode
The object type which implements INode.