C# 異步await

 async 和 await 關鍵字從 C# 5 開始可用。async private async void button1_Click(object sender, EventArgs e) { var t = Task.Run(() => { Thread.Sleep(5000); return "Hello I am TimeConsumingMeth
相關文章
相關標籤/搜索