title: How to pass List<Tuple> to another class?
body: <p>I'm trying to pass List pass to Windows form and there is error with adding records to this list(see code). In list are 3 params: MacAddress(string), Port(int), Time when packet arrived(DateTime). I want to refresh that list in listbox every 1 seconds.</p>
  
  <pre><code>    class Listen
          {
              Form1 mainForm;
              List&lt;Tuple&lt;string, int, DateTime&gt;&gt; list = new List&lt;Tuple&lt;string, int, DateTime&gt;&gt;();
  
              public Listen(Form1 mainForm)
              {
                  this.mainForm = mainForm;
              }
  
              public List&lt;Tuple&lt;string, int, DateTime&gt;&gt; GetList()
              {
                  return list;
              }
  
              public void AddtoList(string MacAddr, int deviceNumber, DateTime dt)
              {
                  //ERROR:No overload for method 'Add' takes 3 arguments
                  list.Add(MacAddr, deviceNumber, dt);
              }
  
              public void StartListen(string deviceNum)
              {
               ...
                  AddtoList(MacAddr.ToString(), deviceNumber, DateTime.Now);
               ...
              }
      }
  
  public partial class Form1 : Form
      {
          private Listen lis;
          public Form1()
          {
              InitializeComponent();
              lis = new Listen(this);
              var devices = lis.GetDevices();
              comboBox2.DataSource = devices;
          }
  public void PrintList()
          {
              lis = new Listen(this);
              var list = lis.GetList();
              for (int i = 0; i &lt; list.Count; i++)
              {
                  TimeSpan ts = DateTime.Now - list[i].Item3;
                  listBox1.Items.Add(list[i].Item1 + "Port: " + list[i].Item2 + "Timer: " + ts);
              }
  
          }
  
          private void timer1_Tick(object sender, EventArgs e)
          {
              PrintList();
          }
  }
  </code></pre>