title: Object array dynamic
body: <p>I have the following line in my code:</p>
  
  <pre><code>object[] inputs = new object[] {"input1", "input2", "input3", "input4"};
  </code></pre>
  
  <p>I would like to know how (without knowing how many elements will be in the array) add dynamically using a loop like this:</p>
  
  <pre><code>object[] inputs;
  foreach (string key in Request.Form.Keys)
  {
       inputs[0] = key;
  }
  </code></pre>
  
  <p>How could I do this?</p>
  
  <p>Thanks in advance.</p>
  
  <p>Best Regards.</p>