63fd39f2 cfa1 5796 d56f 7b5c17a88214 - akesseler/Plexdata.Utilities.Templates GitHub Wiki

TemplateWeaver.Weave Method

Assembles the result string.

Namespace: Plexdata.Utilities.Formatting.Helpers
Assembly: Plexdata.Utilities.Templates (in Plexdata.Utilities.Templates.dll) Version: 1.0.0

Syntax

C#

public static void Weave(
	Options options,
	IEnumerable<BaseToken> tokens,
	StringBuilder output,
	Object[] arguments
)

Parameters

 

options
Type: Plexdata.Utilities.Formatting.Options
An instance of class Options to be used to get additional settings from that may affect the output. The Default options are used if this parameter is null.
tokens
Type: System.Collections.Generic.IEnumerable(BaseToken)
The list of tokens that describe how to build the output. Nothing is gonna happen if this parameter is null or empty.
output
Type: System.Text.StringBuilder
An instance of a StringBuilder containing the formatted result. Nothing is gonna happen if this parameter is null.
arguments
Type: System.Object[]
The list of arguments to be out into the result. An empty object list is created if this parameter is null. This may happen in cases of providing just one null argument.

Remarks

This method assembles the result string according to the template formatting rules.

Please note, debug assertions can occur if one of the parameters is recognized as invalid. But an exception is (hopefully) never thrown.

See Also

Reference

TemplateWeaver Class
Plexdata.Utilities.Formatting.Helpers Namespace
TemplateWeaver.IsWeaveAllByIndex(IEnumerable(BaseToken))
TemplateWeaver.WeaveByIndex(IEnumerable(BaseToken), Options, StringBuilder, Object[])
TemplateWeaver.WeaveByLabel(IEnumerable(BaseToken), Options, StringBuilder, Object[])

⚠️ **GitHub.com Fallback** ⚠️