public AD7StackFrame(AD7Engine engine, AD7Thread thread, StackFrameInfo info, int index) { Engine = engine; uint tId; thread.GetThreadId(out tId); ThreadID = (int)tId; this.Thread = thread; this.StackFrameInfo = info; Index = index; _functionName = info.MethodName; if (info.LocalVariables != null) { localVars = new ILProperty[info.LocalVariables.Length]; for (int i = 0; i < localVars.Length; i++) { localVars[i] = new ILProperty(engine, thread, info.LocalVariables[i], this); propertyMapping[info.LocalVariables[i].Name] = localVars[i]; } } else { localVars = new ILProperty[0]; } docContext = new AD7DocumentContext(info); }
public AD7StackFrame(AD7Engine engine, AD7Thread thread, StackFrameInfo info) { Engine = engine; this.Thread = thread; this.StackFrameInfo = info; _functionName = info.MethodName; if (info.LocalVariables != null) { localVars = new ILProperty[info.LocalVariables.Length]; for (int i = 0; i < localVars.Length; i++) { localVars[i] = new ILProperty(info.LocalVariables[i]); propertyMapping[info.LocalVariables[i].Name] = localVars[i]; } } else { localVars = new ILProperty[0]; } docContext = new AD7DocumentContext(info); }