//转成XElement 1:XElement xe = XElement.Parse(Encoding.UTF8.GetString(data));
2:var deliveryTime = DateTimeOffset.Parse(deliveryOrderLevel.Element("deliveryTime").Value).ToUnixTimeSeconds().ToString();
3: var message = _httpClientFactory.CreateClient().PostAsync(url, content).Result; if (message.IsSuccessStatusCode) { var s = message.Content.ReadAsStringAsync().Result; var j = JObject.Parse(s);//转成JObject的类型 var err = (string)j["Head"]["transMessage"];
}
4: XElement xe = XElement.Parse(doc.InnerXml);// doc==>XmlDocument
5:var id = Guid.Parse(tid);//转成Guid的类型