This rather inelegant method takes an input array of objects and outputs a string result, which is the result of ToString() for each element, space separated.
string Format(object[] args)
{
var res = string.Empty;
foreach (var o in args)
{
res += o.ToString();
if (o != args.Last())
res += " ";
}
}
Surely there is a C# method hidden somewhere to do this type of operation, or if not, a more elegant way to write it using Linq? Another concern with how I have written this method is the garbage generation by building the string incrementally.