DotNext by Roman Sakno

<PackageReference Include="DotNext" Version="2.9.5" />

 MemoryTemplate

public static class MemoryTemplate
Represents various extensions for MemoryTemplate<T> type.
public static void Render(this ref MemoryTemplate template, StringBuilder output, string[] replacement)

Replaces all occurences of placeholders in the template with actual values from the given array.

public static string Render(this ref MemoryTemplate template, string[] replacement)

Replaces all occurences of placeholders in the template with actual values from the given array.

public static void Render(this ref MemoryTemplate template, TextWriter output, string[] replacement)

Replaces all occurences of placeholders in the template with actual values from the given array.