123456789101112131415161718192021222324 |
- using Newtonsoft.Json;
- using System;
- using System.Collections.Generic;
- using System.IO;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
-
- namespace XHZB.Desktop.Utils
- {
- internal class ZCache
- {
- public static Dictionary<string, string> headDic = new Dictionary<string, string>();
-
- internal static List<T> JsonToList<T>(string respstr)
- {
- JsonSerializer serializer = new JsonSerializer();
- StringReader sr = new StringReader(respstr);
- object o = serializer.Deserialize(new JsonTextReader(sr), typeof(List<T>));
- List<T> list = o as List<T>;
- return list;
- }
- }
- }
|