同期とスレッドの使用に関するプログラムを 1 つ見ました。プログラムのある部分で、このラムダ式を見て混乱しました。
for (int i = 0; i < 100; i++)
{
Thread.Sleep(100);
progressBar1.BeginInvoke(new Action(() =>
{
progressBar1.Value = i;
listBox1.Items.Add(i.ToString());
}));
}
私の質問は、なぜこのラムダ式に入力引数がないのですか?