Example #1
0
        //
        // IEnumerator interface
        //
        public bool MoveNext()
        {
            ICorPublishAppDomain 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_appDomain = new CorPublishAppDomain(a);
            }
            else
            {
                m_appDomain = null;
            }
            return(m_appDomain != null);
        }
Example #2
0
 public void Reset()
 {
     m_enum.Reset();
     m_appDomain = null;
 }
Example #3
0
 //
 // IEnumerator interface
 //
 public bool MoveNext()
 {
     ICorPublishAppDomain 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_appDomain = new CorPublishAppDomain(a);
     else
         m_appDomain = null;
     return m_appDomain != null;
 }