Example #1
0
        //
        // IEnumerator interface
        //

        #region IEnumerator Members

        public bool MoveNext()
        {
            var a = new ICorDebugAssembly[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_asm = new CorAssembly(a[0]);
            else
                m_asm = null;
            return m_asm != null;
        }
Example #2
0
        //
        // IEnumerator interface
        //

        #region IEnumerator Members

        public bool MoveNext()
        {
            var  a = new ICorDebugAssembly[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_asm = new CorAssembly(a[0]);
            }
            else
            {
                m_asm = null;
            }
            return(m_asm != null);
        }
Example #3
0
 public void Reset()
 {
     m_enum.Reset();
     m_asm = null;
 }
 public CorAssemblyEventArgs(CorAppDomain appDomain,
                             CorAssembly assembly, ManagedCallbackType callbackType)
     : base(appDomain, callbackType)
 {
     m_assembly = assembly;
 }
 public CorAssemblyEventArgs(CorAppDomain appDomain,
                             CorAssembly assembly)
     : base(appDomain)
 {
     m_assembly = assembly;
 }
Example #6
0
 public void Reset()
 {
     m_enum.Reset();
     m_asm = null;
 }