Exemple #1
0
        //
        // IEnumerator interface
        //
        public bool MoveNext()
        {
            ICorPublishProcess a;
            uint c = 0;
            int  r = m_enum.Next((uint)1, out a, out c);

            if (r == 0 && c == 1) // S_OK && we got 1 new element
            {
                m_proc = new CorPublishProcess(a);
            }
            else
            {
                m_proc = null;
            }
            return(m_proc != null);
        }
Exemple #2
0
 public void Reset()
 {
     m_enum.Reset();
     m_proc = null;
 }
Exemple #3
0
 //
 // IEnumerator interface
 //
 public bool MoveNext()
 {
     ICorPublishProcess a;
     uint c = 0;
     int r = m_enum.Next ((uint) 1,out a, out c);
     if (r==0 && c==1) // S_OK && we got 1 new element
         m_proc = new CorPublishProcess(a);
     else
         m_proc = null;
     return m_proc != null;
 }