63fd39f2 cfa1 5796 d56f 7b5c17a88214 - akesseler/Plexdata.Utilities.Templates GitHub Wiki
Assembles the result string.
Namespace: Plexdata.Utilities.Formatting.Helpers
Assembly: Plexdata.Utilities.Templates (in Plexdata.Utilities.Templates.dll) Version: 1.0.0
C#
public static void Weave(
Options options,
IEnumerable<BaseToken> tokens,
StringBuilder output,
Object[] arguments
)
- 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 isnull
. - 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 isnull
orempty
. - output
- Type: System.Text.StringBuilder
An instance of a StringBuilder containing the formatted result. Nothing is gonna happen if this parameter isnull
. - arguments
- Type: System.Object[]
The list of arguments to be out into the result. An empty object list is created if this parameter isnull
. This may happen in cases of providing just onenull
argument.
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.
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[])