我有一个多线程问题。VS2010 不接受“sendCom(IP, com)”。错误:预期的方法名称
private void sendCom(String com)
{
//send command
int i=0;
String IP;
foreach (var item in checkedListBox1.CheckedItems)
{
Console.WriteLine(item.ToString());
IP = getIP(item);
theThreads[i] = new Thread(new ThreadStart( sendCom(IP, com) ));
i++;
}
}
private void sendCom(String IP, String com)
{
theSSHclass.RunSingleCom(IP, com);
}