摘要: /// /// List转成json /// /// /// /// /// public static string ListToJson(IList list, string jsonName){ StringBuilder Json = new StringBuilder(); if (string.IsNullOrEmpty(jsonName)) jsonName = list[0].GetType().Name; Json.Append("{/"" + jsonName + "/":["); if (list.Count & 阅读全文
posted @ 2013-12-11 11:44 zhangsir 阅读(594) 评论(0) 推荐(0) 编辑