public Report(XElement xml) { Pages = new List <report>(); //Get pages IEnumerable <XElement> pages = xml.Descendants("page"); logger.Debug("ReportPages: {0}", pages.Count()); var reportPages = new List <report>(); foreach (XElement page in pages) { var Page = new report(page); Pages.Add(Page); } }
public Report(XElement xml) { Pages = new List<report>(); //Get pages IEnumerable<XElement> pages = xml.Descendants("page"); logger.Debug("ReportPages: {0}", pages.Count()); var reportPages = new List<report>(); foreach (XElement page in pages) { var Page = new report(page); Pages.Add(Page); } }