public RPLReportSection GetNextReportSection() { if (this.m_context != null && this.m_context.VersionPicker == RPLVersionEnum.RPL2008) { if (this.m_sections != null) { this.m_sectionCount--; RPLReportSection result = this.m_sections.Dequeue(); this.m_sections = null; return(result); } return(null); } if (this.m_sections != null) { this.m_sectionCount--; RPLReportSection result2 = this.m_sections.Dequeue(); if (this.m_sections.Count == 0) { this.m_sections = null; } return(result2); } if (this.m_sectionCount == 0) { return(null); } this.m_sectionCount--; return(RPLReader.ReadReportSection(this.m_sectionOffsets[this.m_sectionOffsets.Length - this.m_sectionCount - 1], this.m_context)); }
public void AddReportSection(RPLReportSection section) { if (this.m_sections == null) { this.m_sections = new Queue <RPLReportSection>(); } this.m_sections.Enqueue(section); this.m_sectionCount++; }