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

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);
        }

    }
}

猜你喜欢

转载自blog.csdn.net/hhw199112/article/details/79820148