没事回来看了一下本文的内容有误这个异步也是假的异步要避免这样写而且await后的代码是通过线程上下文自动回到UI线程的所以并不存在异步和委托实现更新UIUI布局如下声明委托public delegate void AsyncDelegate(TextBox textBox);Form代码如下publicpartialclassForm1: Form{AsyncDelegate asyncDelegate null;publicForm1(){InitializeComponent();Console.WriteLine(UI初始化线程Id: Thread.CurrentThread.ManagedThreadId);asyncDelegate AsyncStringMethod;//委托注册方法}privatevoidbutton1_Click(objectsender, EventArgs e){//委托调用AsyncStringMethod(this.textBox1);}privateasyncvoidAsyncStringMethod(TextBox textBox){Console.WriteLine(异步开始线程Id: Thread.CurrentThread.ManagedThreadId);stringretMsg null;awaitTask.Run(() {Console.WriteLine(异步线程Id: Thread.CurrentThread.ManagedThreadId);Interlocked.Exchange(refretMsg,哈咯异步线程);});textBox.Text retMsg;Console.WriteLine(异步结束线程Id: Thread.CurrentThread.ManagedThreadId);}}publicdelegatevoidAsyncDelegate(TextBox textBox);代码还是太简单了不解释注意观察线程Id的输出