Setting attributes on anonymous objects
<p>I thought this was possible in c# .net 2.0 ?</p>

<pre><code>header.Cells.Add((new TableCell(){Text = "First header"}));
</code></pre>

<p>unless I am doing it wrong? this produces the following error:</p>

<pre><code>CS1026: ) expected
</code></pre>

<p>Were is the mistake?</p>
