示例#1
0
 private static User UserPart(JToken json)
 {
     try
     {
         return(JsonTools <User> .DeserializeObject("data.user", json));
     }
     catch (Exception)
     {
         return(new User());
     }
 }
示例#2
0
 private static Account AccountPart(JToken json)
 {
     try
     {
         return(JsonTools <Account> .DeserializeObject("data.account",
                                                       json));
     }
     catch (Exception)
     {
         return(new Account());
     }
 }