TextTransformationExtensions.

WithTokens<TTemplate>(TextTransformation<TTemplate>, IEnumerable<KeyValuePair<string, object>>) Method

Summary

Registers all keys and values in the enumerable for text transformation.

Syntax

public static TextTransformation<TTemplate> WithTokens<TTemplate>(this TextTransformation<TTemplate> transformation, IEnumerable<KeyValuePair<string, object>> tokens) 
    where TTemplate : class, ITextTransformationTemplate

Type Parameters

Name Description
TTemplate The text transformation template.

Parameters

Name Type Description
transformation TextTransformation<TTemplate> The text transformation.
tokens IEnumerable<KeyValuePair<string, object>> The tokens.

Return Value

Type Description
TextTransformation<TTemplate> The same TextTransformation<TTemplate> instance so that multiple calls can be chained.