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); }
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; }