public CorActiveFunction[] GetActiveFunctions() { ICorDebugThread2 m_th2 = (ICorDebugThread2)m_th; UInt32 pcFunctions; m_th2.GetActiveFunctions(0, out pcFunctions, null); COR_ACTIVE_FUNCTION[] afunctions = new COR_ACTIVE_FUNCTION[pcFunctions]; m_th2.GetActiveFunctions(pcFunctions, out pcFunctions, afunctions); CorActiveFunction[] 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() { ICorDebugThread2 m_th2 = (ICorDebugThread2)m_th; UInt32 pcFunctions; m_th2.GetActiveFunctions(0, out pcFunctions, null); COR_ACTIVE_FUNCTION[] afunctions = new COR_ACTIVE_FUNCTION[pcFunctions]; m_th2.GetActiveFunctions(pcFunctions, out pcFunctions, afunctions); CorActiveFunction[] 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; }