title: Initializing a dictionary with anonymous objects
body: <p>I'm trying to do the following.</p>
  
  <pre><code>private static Dictionary&lt;int, object&gt; MAPS = new Dictionary&lt;int, object&gt;
  {
    {1, new {1, 2, 3}}
  };
  </code></pre>
  
  <p>It doesn't work as I'd expect based on <a href="http://msdn.microsoft.com/en-us/library/bb531208.aspx" rel="nofollow noreferrer">MSDN</a>, so I'm pretty certain that the issue is that I'm using anonymous objects. Supposed that I don't want to create a new type for my thingies and still want to keep all the mappings in the same dictionary, what should I do?</p>
  
  <p>I've seen <a href="https://stackoverflow.com/questions/1619518/a-dictionary-where-value-is-an-anonymous-type-in-c-sharp">this answer</a> but it's a bit dated now so I'm hoping there's something new for that in the framework.</p>