摘要:
//把对象序列化为json对象public static string GetJson(T obj){ DataContractJsonSerializer json=new DataContractJsonSerializer(typeof(T)); using(MemoryStream ... 阅读全文
摘要:
1 class ExcelHelper : IDisposable 2 { 3 private string fileName = null; //文件名 4 private IWorkbook workbook = null; 5 ... 阅读全文
摘要:
public int calStrLen(string Str){ int i=0; if(Str==null) { return i; } else { foreach(char c in Str) { if(c>0x4e00&&c<=0x9fa5) ... 阅读全文