/// <summary>Initializes a new instance of the <see cref="T:System.Diagnostics.StackFrame" /> class that contains only the given file name, line number, and column number.</summary> /// <param name="fileName">The file name. </param> /// <param name="lineNumber">The line number in the specified file. </param> /// <param name="colNumber">The column number in the specified file. </param> public StackFrame(string fileName, int lineNumber, int colNumber) { bool flag = StackFrame.get_frame_info(2, false, out this.methodBase, out this.ilOffset, out this.nativeOffset, out fileName, out lineNumber, out this.columnNumber); this.fileName = fileName; this.lineNumber = lineNumber; this.columnNumber = colNumber; }
/// <summary>Initializes a new instance of the <see cref="T:System.Diagnostics.StackFrame" /> class that corresponds to a frame above the current stack frame, optionally capturing source information.</summary> /// <param name="skipFrames">The number of frames up the stack to skip. </param> /// <param name="fNeedFileInfo">true to capture the file name, line number, and column number of the stack frame; otherwise, false. </param> public StackFrame(int skipFrames, bool fNeedFileInfo) { bool flag = StackFrame.get_frame_info(skipFrames + 2, fNeedFileInfo, out this.methodBase, out this.ilOffset, out this.nativeOffset, out this.fileName, out this.lineNumber, out this.columnNumber); }
/// <summary>Initializes a new instance of the <see cref="T:System.Diagnostics.StackFrame" /> class.</summary> public StackFrame() { bool flag = StackFrame.get_frame_info(2, false, out this.methodBase, out this.ilOffset, out this.nativeOffset, out this.fileName, out this.lineNumber, out this.columnNumber); }