Console.WriteLine and generic List

Do this:

list.ForEach(i => Console.Write("{0}\t", i));

EDIT: To others that have responded – he wants them all on the same line, with tabs between them. 🙂

Leave a Comment