我的应用程序使用如下列表:
async Task<object> GetBanktAsync(string path)
{
HttpClient client = new HttpClient();
HttpResponseMessage response = await client.GetAsync(path);
object result;
if (response.IsSuccessStatusCode)
{
result = response.Content.ReadAsAsync<object>().Result;
}
var deserializeObject = Newtonsoft.Json.JsonConvert.DeserializeObject<result>(resultString);
dataGridViewBank.DataSource = deserializeObject;
}
使用GET方法在DataGridview中显示数据库中的库,但它不显示任何内容。为什么呢?