摘要:
private static Regex regex = new Regex("<(\\w+?)[ >]", RegexOptions.Compiled); private string GetRootElement(string body){ Match match = regex.Match(body); if (match.Success) { return match.Groups[1].ToString(); } else { throw new TopExcept... 阅读全文
posted @ 2013-04-03 15:02
xust
阅读(611)
评论(0)
推荐(0)
摘要:
public static string SignTopRequest(IDictionary<string, string> parameters, string secret, bool qhs) { // 第一步:把字典按Key的字母顺序排序 IDictionary<string, string> sortedParams = new SortedDictionary<string, string>(parameters); IEnumerator<KeyValuePair<string, string>> ... 阅读全文
posted @ 2013-04-03 13:50
xust
阅读(788)
评论(0)
推荐(0)
摘要:
//是将实体对象转化为xml文件的过程using System;using System.IO;using System.Xml.Serialization;// This is the class that will be serialized.public class OrderedItem{ public string ItemName; public string Description; public decimal UnitPrice; public int Quantity; public decimal LineTotal; // A custom me... 阅读全文
posted @ 2013-04-03 11:28
xust
阅读(793)
评论(0)
推荐(0)
摘要:
//是将xml文件转化为实体对象的过程using System;using System.IO;using System.Xml.Serialization;// This is the class that will be deserialized.public class OrderedItem{ [XmlElement(Namespace = "http://www.cpandl.com")] public string ItemName; [XmlElement(Namespace = "http://www.cpandl.com")] publ 阅读全文
posted @ 2013-04-03 11:20
xust
阅读(608)
评论(0)
推荐(0)

浙公网安备 33010602011771号