title: Get specific item from list of tuples c#
body: <p>I have a list of tuples:</p>
  
  <pre><code>List&lt;Tuple&lt;int, string, int&gt;&gt; people = new List&lt;Tuple&lt;int, string, int&gt;&gt;();
  </code></pre>
  
  <p>Using a <code>dataReader</code>, I may populate this list with various values:</p>
  
  <pre><code>people.Add(new Tuple&lt;int, string, int&gt;(myReader.GetInt32(4), myReader.GetString(3), myReader.GetInt32(5)));
  </code></pre>
  
  <p>But then how do I loop through, getting each individual value. For example I may want to read the 3 details for a specific person. Lets say there is an ID, a name and a phone number. I want something like the following:</p>
  
  <pre><code>        for (int i = 0; i &lt; people.Count; i++)
          {
              Console.WriteLine(people.Item1[i]); //the int
              Console.WriteLine(people.Item2[i]); //the string
              Console.WriteLine(people.Item3[i]); //the int       
          }
  </code></pre>