// // IEnumerator interface // public bool MoveNext() { ICorDebugBreakpoint[] a = new ICorDebugBreakpoint[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 { ICorDebugBreakpoint br = a[0]; throw new NotImplementedException(); /* * if(a is ICorDebugFunctionBreakpoint) * m_br = new CorFunctionBreakpoint((ICorDebugFunctionBreakpoint)br); * else if( a is ICorDebugModuleBreakpoint) * m_br = new CorModuleBreakpoint((ICorDebugModuleBreakpoint)br); * else if( a is ICorDebugValueBreakpoint) * m_br = new ValueBreakpoint((ICorDebugValueBreakpoint)m_br); * else * Debug.Assert(false); */ } else { m_br = null; } return(m_br != null); }
// // IEnumerator interface // public bool MoveNext() { ICorDebugBreakpoint[] a = new ICorDebugBreakpoint[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 { ICorDebugBreakpoint br = a[0]; if (br is ICorDebugFunctionBreakpoint) { m_br = new CorFunctionBreakpoint((ICorDebugFunctionBreakpoint)br); } else if (br is ICorDebugModuleBreakpoint) { m_br = new CorModuleBreakpoint((ICorDebugModuleBreakpoint)br); } else if (br is ICorDebugValueBreakpoint) { m_br = new CorValueBreakpoint((ICorDebugValueBreakpoint)m_br); } else { throw new NotSupportedException("unexpected breakpoint type"); } } else { m_br = null; } return(m_br != null); }
// // IEnumerator interface // public bool MoveNext() { ICorDebugBreakpoint[] a = new ICorDebugBreakpoint[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_br = new Breakpoint(a[0]); } else { m_br = null; } return(m_br != null); }