public void FileComplete() { var containsKey = FileParagraphUnits.ContainsKey(CurrentFileProperties.FileConversionProperties.OriginalFilePath); if (!containsKey && ParagraphUnits.Count > 0) { FileParagraphUnits.Add(CurrentFileProperties.FileConversionProperties.OriginalFilePath, ParagraphUnits); } }
public void FileComplete() { if (FileParagraphUnits.ContainsKey(CurrentFileProperties.FileConversionProperties.OriginalFilePath)) { var paragraphUnits = FileParagraphUnits[CurrentFileProperties.FileConversionProperties.OriginalFilePath]; foreach (var kvp in ParagraphUnits) { if (!paragraphUnits.ContainsKey(kvp.Key)) { paragraphUnits.Add(kvp.Key, kvp.Value); } } FileParagraphUnits[CurrentFileProperties.FileConversionProperties.OriginalFilePath] = paragraphUnits; } else { FileParagraphUnits.Add(CurrentFileProperties.FileConversionProperties.OriginalFilePath, ParagraphUnits); } }