17,740
社区成员
发帖
与我相关
我的任务
分享
int a = 0;
this.Invoke(delegate ()
{
a = 1;
Console.WriteLine(a);
});
只需要注意解决闭包产生的变量作用域提升带来的问题就行了。