c# creating a dynamically anonymous types (var) : <p>I need to create a anonymous type (HAS to be a var). Like this:</p>

<pre><code>var sizes = new { 
    size = new { Medium = "1", Large = "-3", XL = "10%" } 
};
</code></pre>

<p>It has to be dynamically so the next time this could also happen:</p>

<pre><code>var sizes = new { 
    size = new { 3XL = "5", 4XL = "5%", 5XL = "-10%" } 
};
</code></pre>

<p>How do I do this in C# winforms?</p>

<p>How do i fill in the var sizes? It has to be in this order!</p>
