/// <summary> /// EnumModules is called by the debugger when it needs to enumerate the modules in the program. /// </summary> /// <param name="ppEnum"></param> /// <returns>If successful, returns S_OK; otherwise, returns an error code.</returns> public int EnumModules(out IEnumDebugModules2 ppEnum) { ppEnum = new MonoModuleEnumerator(new[] { Program.Module }); return(S_OK); }
public int EnumModules(out IEnumDebugModules2 ppEnum) { ppEnum = new MonoModuleEnumerator(new IDebugModule2[] { _mainModule }); return(S_OK); }