I'm having trouble with the following collections initialization:
private Dictionary<string, string> mydictionary = new Dictionary<string, string>()
{
    {"key", "value"}
    , {"key2", "value2"}
    , {"key3", "value3"}
};
I keep getting various compiler errors about the syntax. From what I have googled, this should be perfectly valid C# 3.0 code.
The first error that pops up is:
Error   102 ; expecte
What am I doing wrong?
Update
The line that it keeps telling me it expects the ; at is right after the closing ) parenthesis.
I am attempting to create this inside of a static class. If I just remove this, than everything compiles fine.
 
     
     
     
     
     
    