示例#1
0
        public int Next(out IMDSegment ppSegment)
        {
            if (m_curr < m_segments.Count)
            {
                ppSegment = new MDSegment(m_segments[m_curr++]);
                return(HRESULTS.S_OK);
            }
            else if (m_curr == m_segments.Count)
            {
                m_curr++;
                ppSegment = null;
                return(HRESULTS.S_FALSE);
            }

            ppSegment = null;
            return(HRESULTS.E_FAIL);
        }
示例#2
0
        public int Next(out IMDSegment ppSegment)
        {
            if (m_curr < m_segments.Count)
            {
                ppSegment = new MDSegment(m_segments[m_curr++]);
                return HRESULTS.S_OK;
            }
            else if (m_curr == m_segments.Count)
            {
                m_curr++;
                ppSegment = null;
                return HRESULTS.S_FALSE;
            }

            ppSegment = null;
            return HRESULTS.E_FAIL;
        }