// // 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); }
public void Reset() { m_enum.Reset(); m_appDomain = null; }
// // 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; }