C#基于事件异步模式的实现2(续)
1、代码 private void button2_Click(object sender, EventArgs e){listBox1.Items.Add($"The thread id is {Thread.CurrentThread.ManagedThreadId}");BackgroundWorker worker new BackgroundWorker();worker.DoWork new DoWorkEventHandler((s1, s2) >{Thr…
2025-09-19