I saw one program that was about synchrony and using threads. In one part of the program, I saw this lambda expression and I got confused.
for (int i = 0; i < 100; i++)
{
Thread.Sleep(100);
progressBar1.BeginInvoke(new Action(() =>
{
progressBar1.Value = i;
listBox1.Items.Add(i.ToString());
}));
}
My question is, why this lambda expression doesn't have any input argument?