摘要: //把对象序列化为json对象public static string GetJson(T obj){ DataContractJsonSerializer json=new DataContractJsonSerializer(typeof(T)); using(MemoryStream ... 阅读全文
posted @ 2014-11-12 21:10 jiang_jiang 阅读(136) 评论(0) 推荐(0) 编辑
摘要: 1 class ExcelHelper : IDisposable 2 { 3 private string fileName = null; //文件名 4 private IWorkbook workbook = null; 5 ... 阅读全文
posted @ 2014-11-12 20:54 jiang_jiang 阅读(296) 评论(0) 推荐(0) 编辑
摘要: public int calStrLen(string Str){ int i=0; if(Str==null) { return i; } else { foreach(char c in Str) { if(c>0x4e00&&c<=0x9fa5) ... 阅读全文
posted @ 2014-11-12 20:24 jiang_jiang 阅读(282) 评论(0) 推荐(0) 编辑