Reputation: 2161
Is it possible to format a array of values when you don't know in advance the number of elements in the array. I have tried this:
static void Main(string[] args)
{
object[] x = { 1, 2, 3 };
Console.WriteLine(string.Format("{0}", x));
Console.ReadKey();
}
This produces "1".
I am trying to output 1,2,3 or "1","2","3"
Upvotes: 2
Views: 2367