public int Next(out IMDRoot ppRoot) { if (m_curr < m_roots.Count) { ppRoot = new MDRoot(m_roots[m_curr]); return(HRESULTS.S_OK); } else if (m_curr == m_roots.Count) { ppRoot = null; return(HRESULTS.S_FALSE); } ppRoot = null; return(HRESULTS.E_FAIL); }
public int Next(out IMDRoot ppRoot) { if (m_curr < m_roots.Count) { ppRoot = new MDRoot(m_roots[m_curr]); return HRESULTS.S_OK; } else if (m_curr == m_roots.Count) { ppRoot = null; return HRESULTS.S_FALSE; } ppRoot = null; return HRESULTS.E_FAIL; }