I saw this article on msdn with the example http://msdn.microsoft.com/en-us/library/xfhwa508.aspx
So i decided to give it a shot and try this out in my wpf application:
Dictionary<string, string> Dictionarycheck =
new Dictionary<string, string>();
Dictionarycheck.Add("demo1");
Why this won’t work? I get the error: Invalid token ‘(‘ in class, struct, or interface member declaration
Two problems:
In other words, you’ve probably got something like this:
when it should be something like this:
(I’ve adjusted the name of the variable for convention, too.)