<p>I frequently find myself writing code like this:</p>

<pre><code>List&lt;int&gt; list = new List&lt;int&gt; { 1, 3, 5 };
foreach (int i in list) {
    Console.Write("{0}\t", i.ToString()); }
Console.WriteLine();
</code></pre>

<p>Better would be something like this:</p>

<pre><code>List&lt;int&gt; list = new List&lt;int&gt; { 1, 3, 5 };
Console.WriteLine("{0}\t", list);
</code></pre>

<p>I suspect there's some clever way of doing this, but I don't see it. Does anybody have a better solution than the first block? </p>

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. :)