title: Convert List<string> to List<int> in C#
body: <p>I want to convert a <code>List&lt;string&gt;</code> to a <code>List&lt;int&gt;</code>.</p>
  
  <p>Here is my code:    </p>
  
  <pre><code>void Convert(List&lt;string&gt; stringList)
  {
      List&lt;int&gt; intList = new List&lt;int&gt;();  
      for (int i = 0; i &lt; stringList.Count; i++) 
      {  
          intList.Add(int.Parse(stringList[i]));  
      }
  )
  </code></pre>