Intializing dictionary in c# 3.0
<p>I'm having trouble with the following collections initalization:</p>

<pre><code>private Dictionary&lt;string, string&gt; mydictionary = new Dictionary&lt;string, string&gt;()
{
    {"key", "value"}
    , {"key2", "value2"}
    , {"key3", "value3"}
};
</code></pre>

<p>I keep getting various compiler errors about the syntax. From what I have googled this should be perfectly valid C# 3.0 code.</p>

<p>The first error that pops up is:</p>

<pre><code>Error   102 ; expecte
</code></pre>

<p>What am I doing wrong?</p>

<p>UPDATE: The line that it keeps telling me it expects the ; at is right after the closing ) parens.</p>

<p>I am attempting to create this inside of a static class. If I just remove this, than everything compiles fine. </p>
