首页 > Windows开发 > 详细

C# delegate的几种用法

时间:2021-05-26 22:05:35      阅读:31      评论:0      收藏:0      [点我收藏+]

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(() 尤其是=>

C# delegate的几种用法

原文:https://www.cnblogs.com/xihong2014/p/14814216.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!