摘要:
1. Task task = new Task(() => { MultiplyMethod(a, b); }); task.Start(); 2. Task task = Task.Run(() => { MultiplyMethod(a, b); }); 3. Task task = Task. 阅读全文
摘要:
class Program { static void Main(string[] args) { (new Program()).MyMethodAsync(); Console.ReadLine(); } public async Task MyMethodAsync() { Task<int> 阅读全文