thread with multiple parameters

前端 未结 11 1566
一生所求
一生所求 2020-11-29 04:16

Does anyone know how to pass multiple parameters into a Thread.Start routine?

I thought of extending the class, but the C# Thread class is sealed.

Here is wh

11条回答
  •  离开以前
    2020-11-29 04:51

    .NET 2 conversion of JaredPar answer

    Thread standardTCPServerThread = new Thread(delegate (object unused) {
            startSocketServerAsThread(initializeMemberBalance, arg, 60000);
        });
    

提交回复
热议问题