C#問題請教大家
```
public delegate void del();
private void button1_Click(object sender, EventArgs e)
{
Thread t0 = new Thread(f);
t0.Start();
//f();
}
void f()
{
if (this.InvokeRequired)
{
del test = new del(f);
this.Invoke(test);
}
else
{
}
}
為什麼this.Invoke(test);跑完會先去else??
因為委派變數test做new del(f)...又Invoke叫自己一次...發現是自己叫自己是同線程...所以跑else?