多线程中调用多参数的方法
private void Test(int num1, int num2) { Console.WriteLine(num1 + num2); } private void Form1_Load(object sender, EventArgs e) { Thread thTest = new Thread(new ThreadStart(delegate { Test(10, 20); Test(100, 200); })); thTest.Start(); }
private void Test(int num1, int num2) { Console.WriteLine(num1 + num2); } private void Form1_Load(object sender, EventArgs e) { Thread thTest = new Thread(new ThreadStart(delegate { Test(10, 20); Test(100, 200); })); thTest.Start(); }