CRLFAnalyzerNS.TermListType.UpdateList C# (CSharp) Метод

UpdateList() приватный Метод

This is really the core of the logic. Updates the jump list allowing for CROnlyNext entries. This method directly modifies the m_* static variables that store the counts and locations of the first and last jump entries.
private UpdateList ( int &Count, int &last, int &first, bool CROnly ) : void
Count int
last int
first int
CROnly bool
Результат void
    private void UpdateList(ref int Count, ref int last, ref int first, bool CROnly)
    {
      try
      {
        Count++;
        if (last > -1)
        {
          TermListItem setnext = (TermListItem) m_List[last];
          setnext.Next = m_List.Count - 1;
          last = m_List.Count - 1;
        }//end if
        else  //First entry into the jump list.  Initialize both first and last.
        {
          first = m_List.Count - 1;
          last = m_List.Count - 1;
        }//end else
        //Special case the CROnly to insert special jumps into both LF and CRLF entries.
        if (CROnly)  
        {
          if (m_LastLFOnly > -1)
          {
            TermListItem lastlf = (TermListItem) m_List[m_LastLFOnly];
            if (lastlf.CROnlyNext == -1)
            {
              lastlf.CROnlyNext = m_List.Count - 1;
            }//end if
          }//end if
          if (m_LastCRLF > -1)
          {
            TermListItem lastcrlf = (TermListItem) m_List[m_LastCRLF];
            if (lastcrlf.CROnlyNext == -1)
            {
              lastcrlf.CROnlyNext = m_List.Count - 1;
            }//end if
          }//end if
        }//end if
      }//end try
      catch (Exception e)
      {
        CRLFAnalyzer.OutputException("Exception in TermListType.UpdateList", e);
      }//end catch
    }//end UpdateList