创建dynamic 动态object,放入httpclient.post

 dynamic countObject = new System.Dynamic.ExpandoObject();

 countObject.count = 33;


HttpClient _client=new HttpClient();
var data = _client.PostAsync(url, new StringContent(countObject.ToString(), Encoding.UTF8, "application/json")).Result;

你可能感兴趣的:(创建dynamic 动态object,放入httpclient.post)