コード例 #1
0
        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);
        }
コード例 #2
0
        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;
        }