代码: private async Task HomeMoreButton_ClickAsync(object sender, EventArgs e) { InfoLabel_YearOfRelease.Show(); using (var httpClient = new HttpClient()) { var Json = await httpClient.GetStringAsync("http://www.omdbapi.com/?apikey=......=" + InfoNameOfShow.Text + "&type=" + InfoTypeOfShow.Text.ToLower()); var ShowsExtendedInfo = new JavaScriptSerializer().Deserialize<ShowsExtendedInfo>(Json); InfoLabel_YearOfRelease.Text = ShowsExtendedInfo.Year; } }错误:CS0407 'Task Home.HomeMoreButton_ClickAsync(object, EventArgs)' 的返回类型错误在线的:this.HomeMoreButton.Click += new System.EventHandler( this.HomeMoreButton_ClickAsync );我已经四处走动,但从来没有遇到过这个错误,也找不到任何在线帮助我解决这个问题的东西。
添加回答
举报
0/150
提交
取消