I have a construct like this:
private readonly List<Thread> thr = new List<Thread>();
In a class i have a method with one parameter that i want to call threaded.
public void testthr(object xxx)
{
......
}
on button click i start a thread
for (Int32 i = 0; i < textBox8.Lines.Length; i++)
{
var thr1 = new Thread(testthr);
thr1.Start(textBox8.Lines[i].Trim());
thr.Add(threadz);
}
How to make a thread with more than one parameter? Like:
public void testthr(object xxx, string yyy)
{
......
}
this class in thread start ?