예제 #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());
     }
 }