Class MemoryTemplate
Represents various extensions for MemoryTemplate<T> type.
Inherited Members
Namespace: DotNext.Buffers
Assembly: DotNext.dll
Syntax
public static class MemoryTemplate
Methods
| Improve this Doc View SourceRender(MemoryTemplate<Char>, TextWriter, String[])
Replaces all occurences of placeholders in the template with actual values from the given array.
Declaration
public static void Render(this in MemoryTemplate<char> template, TextWriter output, params string[] replacement)
Parameters
Type | Name | Description |
---|---|---|
MemoryTemplate<Char> | template | The string template. |
TextWriter | output | The text writer used to write rendered template. |
String[] | replacement | An array of actual values used to replace placeholders. |
Render(MemoryTemplate<Char>, String[])
Replaces all occurences of placeholders in the template with actual values from the given array.
Declaration
public static string Render(this in MemoryTemplate<char> template, params string[] replacement)
Parameters
Type | Name | Description |
---|---|---|
MemoryTemplate<Char> | template | The string template. |
String[] | replacement | An array of actual values used to replace placeholders. |
Returns
Type | Description |
---|---|
String | The rendered template. |
Render(MemoryTemplate<Char>, StringBuilder, String[])
Replaces all occurences of placeholders in the template with actual values from the given array.
Declaration
public static void Render(this in MemoryTemplate<char> template, StringBuilder output, params string[] replacement)
Parameters
Type | Name | Description |
---|---|---|
MemoryTemplate<Char> | template | The string template. |
StringBuilder | output | The string builder used to write rendered template. |
String[] | replacement | An array of actual values used to replace placeholders. |