title: Easier way to populate a list with integers in .NET
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/49214/populating-a-list-of-integers-in-net">Populating a list of integers in .NET</a>  </p>
  </blockquote>
  
  
  
  <p>Is there a simpler or more elegant way of initializing a list of integers in C# other than this?</p>
  
  <pre><code>List&lt;int&gt; numberList = new List&lt;int&gt;() { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 };
  </code></pre>
  
  <p>or</p>
  
  <pre><code>for(int i = 1; i &lt;= 10; i++)
  {
      numberList.Add(i);
  }
  </code></pre>
  
  <p>It just doesn't seem very practical - especially if the list was to contain a large number of values. Would a loop be a more practical solution?</p>
  
  <p>Thanks,</p>
  
  <p>CC</p>