Exemple #1
0
 public List <T> ReadFromFile <T>(string filePath)
 {
     try
     {
         return(JsonConvert.DeserializeObject <List <T> >(_coder.Decrypt(File.ReadAllText(filePath), _key)));
     }
     catch (Exception ex)
     {
         Console.WriteLine($"{ex.Message}{Environment.NewLine}");
         Console.ReadKey();
         return(default);