Beispiel #1
0
        public int Next(out IMDHandle ppHandle)
        {
            if (m_curr < m_handles.Count)
            {
                ppHandle = new MDHandle(m_handles[m_curr++]);
                return(HRESULTS.S_OK);
            }
            else if (m_curr == m_handles.Count)
            {
                m_curr++;
                ppHandle = null;
                return(HRESULTS.S_FALSE);
            }

            ppHandle = null;
            return(HRESULTS.E_FAIL);
        }
Beispiel #2
0
        public int Next(out IMDHandle ppHandle)
        {
            if (m_curr < m_handles.Count)
            {
                ppHandle = new MDHandle(m_handles[m_curr++]);
                return HRESULTS.S_OK;
            }
            else if (m_curr == m_handles.Count)
            {
                m_curr++;
                ppHandle = null;
                return HRESULTS.S_FALSE;
            }

            ppHandle = null;
            return HRESULTS.E_FAIL;
        }