Simple - just remove the async keyword: C#. Copy Code. protected virtual Task<string> MyFunction() { return Task.FromResult(string.Empty); }
確定! 回上一頁