我正在构建一个 C# 桌面应用程序。
如何在线程中调用采用多个参数的方法。
我有一个名为 Send(string arg1, string arg2, string arg3) 的方法,我需要使用名为 SendingThread 的线程调用此方法。有人可以帮忙解决这个问题吗?
任何帮助都感激不尽。
Thread thread = new Thread(() => Send(arg1, arg2, arg3));
thread.Start();
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)