Exemple #1
0
        //
        // IEnumerator interface
        //

        #region IEnumerator Members

        public bool MoveNext()
        {
            var a = new ICorDebugStepper[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_step = new CorStepper(a[0]);
            else
                m_step = null;
            return m_step != null;
        }
        //
        // IEnumerator interface
        //

        #region IEnumerator Members

        public bool MoveNext()
        {
            var  a = new ICorDebugStepper[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_step = new CorStepper(a[0]);
            }
            else
            {
                m_step = null;
            }
            return(m_step != null);
        }
Exemple #3
0
 public void Reset()
 {
     m_enum.Reset();
     m_step = null;
 }
 public CorStepCompleteEventArgs(CorAppDomain appDomain, CorThread thread,
                                 CorStepper stepper, CorDebugStepReason stepReason,
                                 ManagedCallbackType callbackType)
     : base(appDomain, thread, callbackType)
 {
     m_stepper = stepper;
     m_stepReason = stepReason;
 }
 public CorStepCompleteEventArgs(CorAppDomain appDomain, CorThread thread,
                                 CorStepper stepper, CorDebugStepReason stepReason)
     : base(appDomain, thread)
 {
     m_stepper = stepper;
     m_stepReason = stepReason;
 }
 public void Reset()
 {
     m_enum.Reset();
     m_step = null;
 }