示例#1
0
 /// <summary>
 /// 反序列化
 /// </summary>
 /// <typeparam name="T"></typeparam>
 /// <param name="jsonStr"></param>
 /// <returns></returns>
 public T JsonToModel <T>(string jsonStr)
 {
     return(_json.JsonToModel <T>(jsonStr));
 }
示例#2
0
文件: JsonTool.cs 项目: ayukira/Tools
 /// <summary>
 /// 反序列化
 /// </summary>
 /// <typeparam name="T"></typeparam>
 /// <param name="json"></param>
 /// <returns></returns>
 public static T ToObject <T>(string json)
 {
     return(_jsonHelper.JsonToModel <T>(json));
 }