title: How can I print tuple nested in list in c#?
body: <p>I have a function to fill a <code>List</code> which contains <code>Tuple</code>. It takes a dictionary as parameter and fills the list. </p>
  
  <p>I need this to assign numerical values to text values. </p>
  
  <p>For the sake of clearance;</p>
  
  <p>I have an attribute section which includes let's say;</p>
  
  <p>Attribute: Overcast</p>
  
  <p>Text values for overcast: sunny, rainy, foggy etc.</p>
  
  <p>Attribute: Temperature</p>
  
  <p>Text values for it: hot, cold, mild</p>
  
  <p><code>List</code> has datas as attribute, value as text and value as number.</p>
  
  <p>And I have data section. Which has values like "sunny, cold", "sunny, hot" etc.</p>
  
  <p>My aim is to assign numbers and express data like "1,2", "1,3" and so on.
  To achieve that I wrote a function.</p>
  
  <pre><code>public List&lt;Tuple&lt;string, string, int&gt;&gt; SetNumAttrb(Dictionary&lt;string, string[]&gt; dic)
      {
          List&lt;Tuple&lt;string, string, int&gt;&gt; attNumNom = new List&lt;Tuple&lt;string, string, int&gt;&gt;();
          int ctrl = 1;
          foreach (KeyValuePair&lt;string, string[]&gt; kvp in dic)
          {
              for (int i = 0; i &lt; kvp.Value.Length; i++)
              {
                  attNumNom.Add(Tuple.Create&lt;string, string, int&gt;(kvp.Key, dic[kvp.Key][i], ctrl));
                  ctrl++;
              }
          }
          return attNumNom;
      }
  </code></pre>
  
  <p>Now I need to print this to check if it is working correctly and I am going to need to access its content. How can I do that? </p>