, ID, . , , , , ID maxValue. , :
for (int ID = 0; ID < maxValue; ID++)
{
int copy = ID;
threads.Add(new Thread(() => temp(myString, copy)));
threads[rowID].Start();
}
. , # Java . foreach, , , , :
foreach (string url in urls)
{
new Thread(() => Fetch(url)).Start();
}
, . , , :
foreach (string url in urls)
{
string urlCopy = url;
new Thread(() => Fetch(urlCopy)).Start();
}