how to display array in string in csharp

Code Example - how to display array in string in csharp

                
                        Console.WriteLine("[{0}]", string.Join(", ", yourArray));
 //output style:  [8, 1, 8, 8, 4, 8, 6, 8, 8, 8]