//Load CSV File public bool Load(string pFilePath) { bool result = false; string fileName = String.Empty; try { Dictionary <string, string> filesDictionary = FrameworkUtils.CSVFileToDictionary(pFilePath); //Clear before Load if (this.Count > 0) { this.Clear(); } foreach (var item in filesDictionary) { fileName = item.Key; ProtectedFile protectedFile = new ProtectedFile(fileName, item.Value); this.Add(fileName, protectedFile); if (_debug) { _log.Debug(string.Format("fileName: [{0}], Md5: [{1}], Md5Encrypted: [{2}], Valid: [{3}]", fileName, protectedFile.Md5, protectedFile.Md5Encrypted, protectedFile.Valid)); } } result = true; } catch (Exception ex) { _log.Error(ex.Message, ex); } return(result); }