how to output array in c# code example Example: print array in c# Console.WriteLine(string.Join("\n", myArrayOfObjects));