Пример #1
0
        public bool MoveNext()
        {
            uint gotNum = _debugEnum.Next(1, out _current);

            _position += 1;
            if (_position > _count)
            {
                return(false);
            }
            return(true);
        }
Пример #2
0
        //
        // IEnumerator interface
        //
        public bool MoveNext()
        {
            ICorDebugAppDomain[] a = new ICorDebugAppDomain [1];
            uint c = 0;
            int  r = m_enum.Next((uint)a.Length, a, out c);

            if (r == 0 && c == 1) // S_OK && we got 1 new element
            {
                m_ad = new CorAppDomain(a[0]);
            }
            else
            {
                m_ad = null;
            }
            return(m_ad != null);
        }