Click or drag to resize
VariableStringFormat Method (VariableString, VariableArrayString)
Microsoft Research
Replaces argument placeholders such as {0}, {1} etc with arguments having the corresponding index, similar to what Format(String, Object) does.

Namespace: MicrosoftResearch.Infer.Models
Assembly: Infer.Compiler (in Infer.Compiler.dll) Version: 2.6.41128.1 (2.6.41128.1)
Syntax
public static Variable<string> StringFormat(
	Variable<string> format,
	VariableArray<string> args
)

Parameters

format
Type: MicrosoftResearch.Infer.ModelsVariableString
The string with argument placeholders.
args
Type: MicrosoftResearch.Infer.ModelsVariableArrayString
The array of arguments.

Return Value

Type: VariableString
format with argument placeholders replaced by arguments.
Remarks
This method has the following notable differences from Format(String, Object):
    Placeholder for each of the arguments must be present in the format string exactly once.No braces are allowed except for those used to specify placeholders.
See Also