In C# you can do this:
foo = string.Format(\"{0} {1} {2} {3} ...\", \"aa\", \"bb\", \"cc\" ...);
This method Format() accepts in
Format()
Use the params keyword. Usage:
public void DoSomething(int someValue, params string[] values) { foreach (string value in values) Console.WriteLine(value); }
The parameter that uses the params keyword always comes at the end.