C# 给另一线程传递参数

private void button1_Click(object sender, EventArgs e)      
{
System.Threading.Thread TestThread = new System.Threading.Thread(new System.Threading.ParameterizedThreadStart(Test));
object test="asdfasdf";
TestThread.Start(test);
}

private void Test(object test)
{
string k = test.ToString();
}

 

posted @ 2013-09-12 10:45  JasonGu0  阅读(237)  评论(0编辑  收藏  举报