MethodInvoker 创建委托

if (this.InvokeRequired)
this.Invoke(new MethodInvoker(() => { this.Close(); }));
else
this.Close();

原文地址:https://www.cnblogs.com/runliuv/p/6257168.html