protected virtual void Dispose(bool disposing) { if (disposed || !disposing) { return; } ProcessedDocumentCache.Dispose(); processedDocumentCache = null; disposed = true; }
public TransformationData(Markdown markdown, List <ErrorDetail> errorList, List <ImageConversion> imageDetails, List <AttachmentConversionDetail> attachNames, FolderDetails currentFolderDetails, IEnumerable <string> languagesLinksToGenerate = null, bool nonDynamicHTMLOutput = false) { NonDynamicHTMLOutput = nonDynamicHTMLOutput; AttachNames = attachNames; CurrentFolderDetails = new FolderDetails(currentFolderDetails); ErrorList = errorList; ImageDetails = imageDetails; LanguagesLinksToGenerate = languagesLinksToGenerate ?? markdown.SupportedLanguages; HtmlBlocks = new Dictionary <string, string>(); FoundDoxygenSymbols = new HashSet <string>(); Markdown = markdown; processedDocumentCache = new ProcessedDocumentCache(currentFolderDetails.GetThisFileName(), this); }