For Babelfish Release 1.11.1.3

StringInterpolationReplace Method

Performs string interpolation using a dictionary for the source of the values.

Definition

Namespace: Scopos.BabelFish.Helpers.Extensions
Assembly: BabelFish (in BabelFish.dll) Version: 1.11.1.4+b1da393815f6638555a663d9a94167ecabea5695
C#
public static string Replace(
	this string source,
	Dictionary<string, string> values
)

Parameters

source  String
The string to replace values with. All values must be in {}.
values  DictionaryString, String
The dictionary, that holds the name value pairs for replacement.

Return Value

String

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type String. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

See Also