Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/287.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 下面的代码是用mvc控制器编写的,有人能解释一下吗?_C#_Asp.net Mvc_Asp.net Core_.net Core - Fatal编程技术网

C# 下面的代码是用mvc控制器编写的,有人能解释一下吗?

C# 下面的代码是用mvc控制器编写的,有人能解释一下吗?,c#,asp.net-mvc,asp.net-core,.net-core,C#,Asp.net Mvc,Asp.net Core,.net Core,有人能解释一下下面几行在.NETMVC中的用法吗 string apiResponse = await response.Content.ReadAsStringAsync(); _hdfcData = JsonConvert.DeserializeObject<HDFCData>(apiResponse); string apiResponse=wait response.Content.ReadAsStringAsync(); _hdfcData=JsonConvert.Des

有人能解释一下下面几行在.NETMVC中的用法吗

string apiResponse = await response.Content.ReadAsStringAsync();
_hdfcData = JsonConvert.DeserializeObject<HDFCData>(apiResponse);
string apiResponse=wait response.Content.ReadAsStringAsync();
_hdfcData=JsonConvert.DeserializeObject(apiResponse);
string apiResponse=wait response.Content.ReadAsStringAsync();
获取http响应消息并将其序列化为字符串

\u hdfcData=JsonConvert.DeserializeObject(apiResponse);

将字符串反序列化为
HDFCData
type

它是对
HDFCData
对象类型的响应内容进行反序列化。