Generic Type JsonConvert.DeserializeObject<List<T>>(string)
问题 I am using Newtonsoft.JSON. I won't know the type of object passed to this method, or retrieved to this method, so I am attempting to use DeserializeObject on an object I do not know the type of. Is this possible? If so, how? Here is my code. public static List<T> GetObject<T>(string cacheKey, IEnumerable<T> obj) { using (HttpClient client = new HttpClient()) { var response = client.GetAsync("http://localhost:53805/api/NonPersisted/Get/" + cacheKey).Result; obj = JsonConvert.DeserializeObject