摘要:
/// /// 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 & 阅读全文