title: ThreadStart with Parameter method
body: <p>I am trying to learn Threading in .Net.</p>
  
  <p>Many of you must have seen this:</p>
  
  <pre><code>private void button1_Click(object sender, EventArgs e)
  {
      Thread t = new Thread(new ThreadStart(loop));
      t.Start();
  }
  
  private void loop()
  {
      for (int i = 0; i &lt; 100000; i++)
      {
          textBox1.Text = i.ToString();
      }
  }
  </code></pre>
  
  <p>It works fine, but what if my loop method has parameters in it, like:</p>
  
  <pre><code>private void loop(string str)
  {
      for (int i = 0; i &lt; 100000; i++)
      {
          textBox1.Text = i + str;
      }
  }
  </code></pre>
  
  <p>Then how to call this method in my ThreadStart as ThreadStart accepts just the method name. Then how to call loop method in a different thread?</p>