C# delegate的几种用法

1、 Invoke(new Action(() =>

Invoke(new Action(() =>
{
if(V.Contains("E"))
MessageBox.Show(" Error,try again!");
else
textBox2.Text += "Current voltage is " + V + "V" + "\r\n";
}));
里面的Invoke(new Action(() 尤其是=>

posted on 2021-05-26 17:05  xihong  阅读(164)  评论(0)    收藏  举报

导航