TemplateVariableProcessorReplace(String, TemplateVariableMapper) Method

Replaces variables occurring in input as specified by valueMapper. Only single-line strings are supported.

Definition

Namespace: Quine.Schemas.Core
Assembly: Quine.Schemas.Core (in Quine.Schemas.Core.dll) Version: 1.0.0+0ea0706914ee4edf2b0ed66bec3ab4d062a43b68
C#
public static string Replace(
	string input,
	TemplateVariableMapper valueMapper
)

Parameters

input  String
String with variables to replace.
valueMapper  TemplateVariableMapper
A method mapping a variable name to replacement string.

Return Value

String
Input string with variables replaced with their respective values.

Exceptions

TemplateFormatExceptionvalueMapper returned null or threw.

See Also