如何调用一个在线程中带有多个参数的方法?

问题描述:

我正在构建C#桌面应用程序. 如何调用一个在线程中采用多个参数的方法. 我有一个名为Send(string arg1,string arg2,string arg3)的方法,我需要使用一个名为SendingThread的线程来调用此方法.有人可以帮忙吗? 任何帮助将不胜感激.

I am building a C# Desktop application. How do I call a method that takes multiple parameters in a thread. I have a method called Send(string arg1, string arg2, string arg3) , I need to call this method using a thread called SendingThread. Can anyone help out with this? Any help will be much appreciated.

Thread thread = new Thread(() => Send(arg1, arg2, arg3));
thread.Start();