标签:ar for sp div art on c ad line
static void Main(string[] args)
{
ParameterizedThreadStart doWork = new ParameterizedThreadStart(getMethod);
Thread th = new Thread(doWork);
object obj = new string[] { "a", "b", "c", "d", "e", "f", "g" };
th.Start(obj);
}
public static void getMethod(object c)
{
string[] a = (string[])c;
foreach (string s in a) {
Console.Write(s);
Thread.Sleep(1000);
}
Console.ReadLine();
}
线程中传递参数
标签:ar for sp div art on c ad line
原文地址:http://www.cnblogs.com/beijing2020/p/3993506.html