Пример #1
0
        public static List <UserResult> GetUserResultsFromFile()
        {
            var serializedUserResults = FileProvider.Get(userResultsPath);
            var userResults           = JsonConvert.DeserializeObject <List <UserResult> >(serializedUserResults);

            return(userResults);
        }
Пример #2
0
        public static List <Question> GetQuestionsFromFile()
        {
            var serializedQuestions = FileProvider.Get(questionsPath);
            var questions           = JsonConvert.DeserializeObject <List <Question> >(serializedQuestions);

            return(questions);
        }