Example #1
0
 public static void AppendDateInListIfNotInList(string date, CsvDataStructure csvObj)
 {
     if (csvObj.Date.Any(enter => enter == date))
     {
         return;
     }
     csvObj.Date.Add(date);
 }
Example #2
0
        public static void AddDataInList(string word, string wordCount,
                                         Dictionary <string, CsvDataStructure> fileContent)
        {
            var listObj = new CsvDataStructure {
                WordCount = wordCount
            };

            fileContent.Add(word, listObj);
        }