title: Fill List<int> with default values?
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/1104457/auto-initializing-c-lists">Auto-Initializing C# Lists</a>  </p>
  </blockquote>
  
  
  
  <p>I have a list of integers that has a certain capacity that I would like to automatically fill when declared. </p>
  
  <pre><code>List&lt;int&gt; x = new List&lt;int&gt;(10);
  </code></pre>
  
  <p>Is there an easier way to fill this list with 10 ints that have the default value for an int rather than looping through and adding the items?</p>