title: C# adding to list of tuples with a function
body: <p>I'm fairly new to C#, just started 2 days ago because I need to create simple project for my Coding classes at University, unfortunately we had 3 days to complete the code so I'm 1 day behind, but it doesn't matter. I created a list of tuples using code fount @ whatacode.wordpress.com.</p>
  
  <pre><code>public class TupleList&lt;int, string, string, int, int, string, int&gt; : List&lt;Tuple&lt;int, string, string, int, int, string, int&gt;&gt;
     {
         public void Add(int IDL, string AlbNmL, string ArtL, int RelDL, int TrAmnL, string LocL, int RatL)
         {
             Add(new Tuple&lt;int, string, string, int, int, string, int&gt;(ID, AlbNm, Art, RelD, TrAmn, Loc, Rat));
         }
     }
  </code></pre>
  
  <p>I need to create list if it's first addition to tuple so I used if </p>
  
  <pre><code> if (currid == 0)
         {
             var Albums = new TupleList&lt;int, string, string, int, int, string, int&gt;
          {
              {ID, AlbNm, Art, RelD, TrAmn, Loc, Rat},
          };
  
         }
  </code></pre>
  
  <p>My ID, AlbNm, Art, RelD, TrAmn, Loc, Rat are result of readlines etc, doesn't really matter. (or does it??)
  I use currid as an indicator whether it's first or not (it start's with 0 and is ++ at the end of the add function.</p>
  
  <p>Now my question is that how can I use the ADD method of my TupleList class in to add them (the ID, AlbNm, Art, RelD, TrAmn, Loc, Rat that I got from readlines) as a next tuple. I used</p>
  
  <pre><code>if(currid &gt; 0) 
  </code></pre>
  
  <p>but I don't really know what to put into that if.
  Hope my question is understandable in any % and that someone can help me :)
  Thanks in advance.</p>