public UserEntity GetUserSession() { var serializationUtility = new SerializationUtility(); object userJson = string.Empty; ApplicationData.Current.LocalSettings.Values.TryGetValue(LoginService.USERKEY, out userJson); return serializationUtility.DeSerialize<UserEntity>(userJson == default(object) ? string.Empty : userJson.ToString()); }