12 2011 档案
摘要:public static class XmlHelper { private static byte[] XmlSerializeInternal(object o, Encoding encoding) { if( o == null ) throw new ArgumentNullException("o"); if( encoding == null ) throw new ArgumentNullException("encoding"); XmlSerializer ser = new XmlSerializer(o.GetType());
阅读全文
摘要:public class RestClient { private HttpWebRequest CreateHttpRequest(string url, string method) { HttpWebRequest request = (HttpWebRequest)WebRequest.Create(url); this.SetProxy(request); request.Headers.Set("Cache-Control", "No-Cache"); requ...
阅读全文

浙公网安备 33010602011771号