Пример #1
0
        //
        // IEnumerator interface
        //

        #region IEnumerator Members

        public bool MoveNext()
        {
            ICorPublishAppDomain a;
            uint c = 0;
            int  r = m_enum.Next(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);
        }
Пример #2
0
 public void Reset()
 {
     m_enum.Reset();
     m_appDomain = null;
 }
Пример #3
0
        //
        // IEnumerator interface
        //

        #region IEnumerator Members

        public bool MoveNext()
        {
            ICorPublishAppDomain a;
            uint c = 0;
            int r = m_enum.Next(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;
        }
Пример #4
0
 public void Reset()
 {
     m_enum.Reset();
     m_appDomain = null;
 }