Method WithContent
- Namespace
- TinyComponents
- Assembly
- TinyComponents.dll
WithContent<TXmlNode>(TXmlNode, Action<TXmlNode>)
Specifies children contents for this INode.
public static TXmlNode WithContent<TXmlNode>(this TXmlNode node, Action<TXmlNode> selector) where TXmlNode : INode
Parameters
node
TXmlNodeThe 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 : INode
Parameters
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 : INode
Parameters
Returns
- TXmlNode
The self INode object for fluent chaining.
Type Parameters
TXmlNode
The object type which implements INode.