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. 🙂
More Related Contents:
- How to Sort a List by a property in the object
- Convert generic List/Enumerable to DataTable?
- How to remove elements from a generic list while iterating over it?
- How do I clone a generic list in C#?
- ArrayList vs List in C#
- Remove duplicates from a List in C#
- List or IList [closed]
- How to create List of open generic type of class?
- Does .NET have a way to check if List a contains all items in List b?
- List OrderBy Alphabetical Order
- XML Serialize generic list of serializable objects
- Combination of List
- Is it worthwhile to initialize the collection size of a List if it’s size reasonably known?
- How to initialize a List to a given size (as opposed to capacity)?
- Generic List – moving an item within the list
- How do I check if a given value is a generic list?
- Cast Object to Generic List
- How to convert c# generic list to json using json.net?
- What are generics in C#? [closed]
- Does Distinct() method keep original ordering of sequence intact?
- Is there a reasonable approach to “default” type parameters in C# Generics?
- What does denote in C# [duplicate]
- Why does IEnumerable inherit from IEnumerable?
- Easiest way to Rotate a List in c#
- How to split string preserving whole words?
- In C#, how to instantiate a passed generic type inside a method?
- Type must be a reference Type Error When Calling Generic Method
- Remove duplicate items from list in C#, according to one of their properties
- Filtering out values from a C# Generic Dictionary
- How do generics get compiled by the JIT compiler?