摘要:
public static System.Xml.Linq.XElement Post(HttpClient _myhttp, string url, XmlDocument doc) { HttpContent content = new StringContent(doc.InnerXml, E 阅读全文
摘要:
//转成XElement 1:XElement xe = XElement.Parse(Encoding.UTF8.GetString(data)); 2:var deliveryTime = DateTimeOffset.Parse(deliveryOrderLevel.Element("deli 阅读全文
摘要:
1,集合通过select转匿名对象 List<DemoClass> liset = new List<DemoClass>(); DemoClass a0 = new DemoClass() { Id = 1, Name = "asd " };DemoClass a1 = new DemoClass 阅读全文
摘要:
byte[] mybyte = null; DataTable dt = OrderData.GetFP(txt.Text.Trim()); mybyte = (byte[])dt.Rows[0]["PDF_FILE"]; byte[] fileByte = Convert.FromBase64St 阅读全文
摘要:
有的厂商接口的Url是需要进行算法加密和参数按照字母排序 演示加密算法: http://cctv/open/service? method=method2 ×tamp=2015-04-26%2000:00:07 &format=xml &app_key=testerp_appkey &v= 阅读全文