title: How to add items in a dynamic array
body: <p>I need make a function that return dynamic[] </p>
  
  <p>This works fine for me </p>
  
  <pre><code>    public static dynamic[] GetDonutSeries(this Polls p)
      {
          return new dynamic[]
              {
                  new {category = "Football",value = 35},
                  new {category = "Basketball",value = 25},
                  new {category = "Volleyball",value = 20},
                  new {category = "Rugby",value = 10},
                  new {category = "Tennis",value = 10}  
              };
      }
  </code></pre>
  
  <p>But I need to add items doing different operations.</p>
  
  <p>Like this</p>
  
  <pre><code>public static dynamic[] GetDonutSeries(this Polls p)
      {
          dynamic[] result = new dynamic[]();
  
          foreach (PollOptions po in p.PollOptions)
          {
              result.Add(new {category = po.OptionName,value = po.PollVotes.Count});
          }
          return result;
      }
  </code></pre>
  
  <p>But I cant use .Add method for dynamic[]. How I can do it?</p>