192a0058 0179 2aa6 8e48 d774a4cea0b6 - akesseler/Plexdata.Utilities.Templates GitHub Wiki
Appends a void token to the output.
Namespace: Plexdata.Utilities.Formatting.Helpers
Assembly: Plexdata.Utilities.Templates (in Plexdata.Utilities.Templates.dll) Version: 1.0.0
C#
private static void WeaveVoidToken(
this BaseToken token,
Options options,
StringBuilder output
)
- token
- Type: Plexdata.Utilities.Formatting.Entities.BaseToken
The token to be processed. - options
- Type: Plexdata.Utilities.Formatting.Options
The options to be used. - output
- Type: System.Text.StringBuilder
The output where to put the results.
In Visual Basic and C#, you can call this method as an instance method on any object of type BaseToken. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
This method handles formatting of all tokens for which their related argument is null.
The value of Fallback of the options is used but only if set. Otherwise the Marker of HoleToken is used.
This behavior fits the rendering semantic of the message template definition. See also https://messagetemplates.org.
TemplateWeaver Class
Plexdata.Utilities.Formatting.Helpers Namespace