我的代碼如下線程並行調用,操作
public void DownloadConcurrent(Action<string> Methord)
{
Action<string>[] methordList = new Action<string>[Concurent_Downloads];
for (int i = 0; i < Concurent_Downloads; i++)
{
methordList[i] = Methord;
}
Parallel.Invoke(methordList);
}
Parallel.Invoke是給錯誤:
"cannot convert from 'System.Action<string>[]' to 'System.Action[]'"
它調用方法是
public void DownloadLinks(string Term)
{
}