摘要: /// /// 把对象转换为JSON字符串 /// public static string GetJson(T obj) { //记住 添加引用 System.ServiceModel.Web /** * 如果不添加上面的引用,System.Runtime.Serialization.Json... 阅读全文
posted @ 2014-04-20 14:33 骑着骆驼逛沙漠 阅读(304) 评论(0) 推荐(0) 编辑
摘要: public static string ObjToStr(object ob) { if (ob == null) { return string.Empty; } else return ob.ToString(); } public static string GetJsonByDataset... 阅读全文
posted @ 2014-04-20 14:29 骑着骆驼逛沙漠 阅读(205) 评论(0) 推荐(0) 编辑