I have a dictionary method which loops and add the documents. All I want now is to reference this method to another method in the same class and be able to access the parameter. <pre>How to call Dictionary class into another class and reference its parameter
//I want to be able to do this from this class var file = DocumentsToPDFDocs(financialDocument); -- -- }
public Dictionary<FinancialDocument, PdfDocument> DocumentsToPDFDocs(IEnumerable<FinancialDocument> financialDocuments) { var ret = new Dictionary<FinancialDocument, PdfDocument>(); foreach (var finDoc in financialDocuments) { ret.Add(finDoc, new PdfDocument(new PdfReader(finDoc.Document))); } return ret; }
var file = DocumentsToPDFDocs(financialDocument); foreach (FinancialDocument fd in file.Keys) { PdfDocument pd = file[fd]; ...
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)