title: C# List - Add to the bottom of the list
body: <p>I have a <code>List&lt;T&gt;</code> and want to start adding from the bottom but I'm getting a runtime <code>IndexOutOfBoundsException</code>.</p>
  
  <p>I have initialized a list with a capacity:</p>
  
  <pre><code>List&lt;ClassA&gt; ClassesOfA = new List&lt;ClassA&gt;(10);
  ...
  ...
  ClassesOfA[5] = classAObj;
  ...
  </code></pre>
  
  <p>Is there anyway to do this?</p>
  
  <p>I need to do this because I'm analyzing another list from the bottom and adding the result to this list. So I need to be able to add from the bottom.
  Is there any way to do this rather than initializing the <code>List&lt;ClassA&gt;</code> with <code>ClassA</code> objects before adding my objects?</p>