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.7.1803.2803 (2.7.1803.2803)
public static Variable<string> StringFormat(
	Variable<string> format,
	VariableArray<string> args


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

Return Value

Type: VariableString
format with argument placeholders replaced by arguments.
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