title: Ask do you add a property to a dynamic list in c#?
body: <p>EXAMPLE: when you want to return an object in Json, you can create the object like this:</p>
  
  <pre><code> Json(new { NameIWant= myProperty});
  </code></pre>
  
  <p>But in my dynamic list goes like this...</p>
  
  <pre><code>List&lt;dynamic&gt; list = new List&lt;dynamic&gt;();
  
  var propertyName1 = 1000;
  list.Add(number1);
  
  var propertyName2 = 2000;
  list.Add(number1);
  </code></pre>
  
  <p>This only contains the amount but I would like to add a name so my object in position [0] and position <a href="https://i.stack.imgur.com/U0Ejd.png" rel="nofollow noreferrer">1</a> are named: </p>
  
  <pre><code>propertyName1 = 1000, 
  propertyName2 =2000
  </code></pre>
  
  <p>Right now my list looks like this:
  <a href="https://i.stack.imgur.com/U0Ejd.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/U0Ejd.png" alt="enter image description here"></a></p>
  
  <p>In other words I want to display a Name next to the [0] and <a href="https://i.stack.imgur.com/U0Ejd.png" rel="nofollow noreferrer">1</a> so when I call them I don't use their position and I'll use their name instead.</p>