title: How to create temporary class?
body: <p>I'd like to create a temporary class without having to build the concrete class.  The workflow will look like this:</p>
  
  <pre><code>List&lt;object&gt; myList = new List&lt;object&gt;();
  myList.Add(new() {prop1 = 33, prop2 = "test"});
  myList.Add(new() {prop1 = 35, prop2 = "test2"});
  </code></pre>
  
  <p>//loop through myList, accessing both properties of each list item</p>
  
  <p>Any ideas how something like that can be done?</p>