static async void FactorialAsync( int n). {. try. {. await Task.Run(() => Factorial(n));. } catch (Exception ex). {. Console.WriteLine(ex.
確定! 回上一頁