예제 #1
0
 //
 // IEnumerator interface
 //
 public bool MoveNext ()
 {
     if( m_enum==null )
         return false;
     
     ICorDebugType[] a = new ICorDebugType[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_ty = new CorType (a[0]);
     else
         m_ty = null;
     return m_ty != null;
 }
예제 #2
0
        //
        // IEnumerator interface
        //

        #region IEnumerator Members

        public bool MoveNext()
        {
            if (m_enum == null)
            {
                return(false);
            }

            var  a = new ICorDebugType[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_ty = new CorType(a[0]);
            }
            else
            {
                m_ty = null;
            }
            return(m_ty != null);
        }