Show / Hide Table of Contents

Class MemoryTemplate

Represents various extensions for MemoryTemplate<T> type.

Inheritance
Object
MemoryTemplate
Inherited Members
Object.Equals(Object)
Object.Equals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Object.ReferenceEquals(Object, Object)
Object.ToString()
Namespace: DotNext.Buffers
Assembly: DotNext.dll
Syntax
public static class MemoryTemplate

Methods

| Improve this Doc View Source

Render(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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX