Table of Contents

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 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 : INode

Parameters

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 : INode

Parameters

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.