title: Literal notation for Dictionary in C#?
body: <p>I currently have a WebSocket between JavaScript and a server programmed in C#. In JavaScript, I can pass data easily using an associative array:</p>
  
  <pre><code>var data = {'test': 'val',
              'test2': 'val2'};
  </code></pre>
  
  <p>To represent this data object on the server side, I use a <code>Dictionary&lt;string, string&gt;</code>, but this is more 'typing-expensive' than in JavaScript:</p>
  
  <pre><code>Dictionary&lt;string, string&gt; data = new Dictionary&lt;string,string&gt;();
  data.Add("test", "val");
  data.Add("test2", "val2");
  </code></pre>
  
  <p>Is there some kind of literal notation for associative arrays / <code>Dictionary</code>s in C#?</p>