您的位置:首页 > 其它

线程启动一个带多个参数的方法

2018-04-04 17:20 162 查看
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;

namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
Thread t = new Thread(delegate () { subPing("1", "2"); });
t.Start();
}
static void subPing(string a,string b)
{
Console.WriteLine(a + "_________" + b);
}

}
}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: