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