可能重复:
带参数的 C# ThreadStart
如何将具有一个参数的方法放入线程 C#。
例子:
Thread thread = new Thread(SoundInputThread.getSomething(hz));
thread.Start();
for (int i = 0; i < 5; i++) {
Console.WriteLine();
Thread.Sleep(1000);
}
public static void getSomething(int hz) {
hz = 100;
Console.WriteLine();
}