//
 // IEnumerator interface
 //
 public bool MoveNext ()
 {
     ICorDebugAssembly[] 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;
 }
        //
        // IEnumerator interface
        //
        public bool MoveNext()
        {
            ICorDebugAssembly[] 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);
        }
Ejemplo n.º 3
0
 public CorAssemblyEventArgs(CorAppDomain appDomain,
                              CorAssembly assembly, ManagedCallbackType callbackType)
     : base(appDomain, callbackType)
 {
     m_assembly = assembly;
 }
Ejemplo n.º 4
0
 public CorAssemblyEventArgs(CorAppDomain appDomain,
                              CorAssembly assembly)
     : base(appDomain)
 {
     m_assembly = assembly;
 }
Ejemplo n.º 5
0
 /// <summary>
 /// Create a new instance of the AssemblyLoadedStopReason class.
 /// </summary>
 /// <param name="assembly">The assembly that has been loaded.</param>
 public AssemblyLoadedStopReason(CorAssembly assembly)
 {
     Debug.Assert(assembly != null);
     m_assembly = assembly;
 }
 public void Reset ()
 {
     m_enum.Reset ();
     m_asm = null;
 }
 public void Reset()
 {
     m_enum.Reset();
     m_asm = null;
 }