public CorActiveFunction[] GetActiveFunctions() { var m_th2 = (ICorDebugThread2)m_th; UInt32 pcFunctions; m_th2.GetActiveFunctions(0, out pcFunctions, null); var afunctions = new COR_ACTIVE_FUNCTION[pcFunctions]; m_th2.GetActiveFunctions(pcFunctions, out pcFunctions, afunctions); var caf = new CorActiveFunction[pcFunctions]; for (int i = 0; i < pcFunctions; ++i) { caf[i] = new CorActiveFunction((int)afunctions[i].ilOffset, new CorFunction((ICorDebugFunction)afunctions[i].pFunction), afunctions[i].pModule == null ? null : new CorModule(afunctions[i].pModule) ); } return(caf); }
public CorActiveFunction[] GetActiveFunctions() { var m_th2 = (ICorDebugThread2) m_th; UInt32 pcFunctions; m_th2.GetActiveFunctions(0, out pcFunctions, null); var afunctions = new COR_ACTIVE_FUNCTION[pcFunctions]; m_th2.GetActiveFunctions(pcFunctions, out pcFunctions, afunctions); var caf = new CorActiveFunction[pcFunctions]; for (int i = 0; i < pcFunctions; ++i) { caf[i] = new CorActiveFunction((int) afunctions[i].ilOffset, new CorFunction((ICorDebugFunction) afunctions[i].pFunction), afunctions[i].pModule == null ? null : new CorModule(afunctions[i].pModule) ); } return caf; }