C#运用|C# 线程传递参数推荐方法


public class MyThread { int _num; public MyThread(int num) { _num = num; }public void RunFun() {} }static void Main(string[] args) { int num = 1; MyThread help = new MyThread(num); Thread thread = new Thread(new ThreadStart(help.RunFun)); thread.IsBackground = true; thread.Start(); Console.Read(); }



【C#运用|C# 线程传递参数推荐方法】

    推荐阅读