摘要:
public string ObjectToJson(string jsonName, IList IL) { StringBuilder Json = new StringBuilder(); Json.Append("{\"" + jsonName + "\":["); if (IL.Count > 0) { for (int i = 0; i (); Type type = obj.GetType(); PropertyInfo[] pi... 阅读全文
摘要:
public string ObjectToJson(string jsonName, IList IL) { StringBuilder Json = new StringBuilder(); Json.Append("{\"" + jsonName + "\":["); if (IL.Count > 0) { for (int i = 0; i (); Type type = obj.GetType(); PropertyInfo[] pi... 阅读全文
|