Пример #1
0
 public static User FromJson(string json)
 {
     CurrentUser = JsonConvert.DeserializeObject<User>(json);
     return CurrentUser;
 }
Пример #2
0
        // ===== static initializers

        public static User NewUser()
        {
            CurrentUser = new User();
            return CurrentUser;
        }