-3

Im trying to do

string[] names = { "Paul", "Elissa", "Tanveer", "Anirudh", "Albert", "John" };
Console.WriteLine(names);

but the output is just

System.String[]
  • It is working exactly as designed. Any object that does not have `ToString()` overridden with just print the Type name. – Crowcoder May 02 '21 at 12:56
  • This is definitely a duplicate of *something*... This isn't it but should maybe help explain to you: https://stackoverflow.com/q/10075751/491907 – pinkfloydx33 May 02 '21 at 12:58
  • 1
    If I gave you a phone book and ask you to write it down. You will also write "phone book". – Drag and Drop May 02 '21 at 13:00

0 Answers0