public int Next(out IMDMemoryRegion ppRegion) { if (m_curr < m_regions.Count) { ppRegion = new MDMemoryRegion(m_regions[m_curr++]); return(HRESULTS.S_OK);; } else if (m_curr == m_regions.Count) { m_curr++; ppRegion = null; return(HRESULTS.S_FALSE); } ppRegion = null; return(HRESULTS.E_FAIL); }
public int Next(out IMDMemoryRegion ppRegion) { if (m_curr < m_regions.Count) { ppRegion = new MDMemoryRegion(m_regions[m_curr++]); return HRESULTS.S_OK; ; } else if (m_curr == m_regions.Count) { m_curr++; ppRegion = null; return HRESULTS.S_FALSE; } ppRegion = null; return HRESULTS.E_FAIL; }