摘要: using System; using System.Collections.Generic; using System.Web; namespace Zhong.Core { /// /// Cookie操作类 /// public class CookieHelper { private static readonly strin... 阅读全文
posted @ 2017-07-16 16:59 Jichan·Jong 阅读(1046) 评论(0) 推荐(0) 编辑
摘要: /// /// 将一个对象序列化为XML字符串 /// /// 要序列化的对象 /// 编码方式 /// 序列化产生的XML字符串 public static string SerializeObject(object o, Encoding encoding) {... 阅读全文
posted @ 2017-07-16 15:14 Jichan·Jong 阅读(647) 评论(0) 推荐(0) 编辑
摘要: using ICSharpCode.SharpZipLib.Zip; using System; using System.Collections.Generic; using System.IO; namespace Zhong.Core { /// /// 压缩解压操作类,使用的是SharpZipLib /// public class DCompres... 阅读全文
posted @ 2017-07-16 14:54 Jichan·Jong 阅读(459) 评论(0) 推荐(0) 编辑