Your first example should work fine, provided there are at least two objects in the array args.
object[] args = new object[] { "Alice", 2 };
str = String.Format("Her name is {0} and she's {1} years old", args);
Your first example should work fine, provided there are at least two objects in the array args.
object[] args = new object[] { "Alice", 2 };
str = String.Format("Her name is {0} and she's {1} years old", args);