摘要:
1 private T JsonDeserialize(string jsonString) 2 3 { 4 5 DataContractJsonSerializer ser = new DataContractJsonSerializer(typeof(T)); 6 7 MemoryStream ms = new MemoryStream(Encoding.UTF8.GetBytes(jsonString)); 8 9 T obj = (T)ser.ReadObject(ms); 10 11 return obj; 12 13 } Lis... 阅读全文