示例#1
0
 /// <summary>
 /// json字符串转对象,序列化
 /// </summary>
 /// <typeparam name="T"></typeparam>
 /// <param name="json"></param>
 /// <returns></returns>
 public static T JSONStringToObject <T>(string json)
 {
     return(StreamSerializer.JSONStringToObject <T>(json));
 }
示例#2
0
 /// <summary>
 /// json字符串转对象,序列化
 /// </summary>
 /// <typeparam name="T"></typeparam>
 /// <param name="json"></param>
 /// <returns></returns>
 public virtual T JSONStringToObject <T>(string json)
 {
     return(StreamSerializer.JSONStringToObject <T>(json));
 }