Show / Hide Table of Contents

Class ClrStackFrameInfo

Represents a single frame in the callstack of .NET application. The stack frame contains information about the called method and the location of the IL code executed within that method

Inheritance
System.Object
ClrStackFrameInfo
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: CilTools.Runtime
Assembly: CilTools.Runtime.dll
Syntax
public class ClrStackFrameInfo

Properties

ILOffset

Gets the offset, in bytes, of the beginning of the IL code executed by this frame, relative to the beginning of the method body.

Declaration
public int ILOffset { get; }
Property Value
Type Description
System.Int32
Remarks

The library cannot accurately determine the currently executed instruction in every case, because the resulting native code could be optimized by JIT. As a result, the currently executed code is presented as the starting and ending offsets.

ILOffsetEnd

Gets the offset, in bytes, of the end of the IL code executed by this frame, relative to the beginning of the method body.

Declaration
public int ILOffsetEnd { get; }
Property Value
Type Description
System.Int32
Remarks

The library cannot accurately determine the currently executed instruction in every case, because the resulting native code could be optimized by JIT. As a result, the currently executed code is presented as the starting and ending offsets.

Method

Gets the method corresponding to this stack frame. The value could be null if this frame is a special frame not corresponding to a managed method, or if the library failed to construct MethodBase object for the called method.

Declaration
public MethodBase Method { get; }
Property Value
Type Description
System.Reflection.MethodBase

Methods

ToString()

Gets the full text representation of this stack frame

Declaration
public override string ToString()
Returns
Type Description
System.String
Overrides
System.Object.ToString()
Remarks

The full text representation contains full signature of the called method, including argument types. If this frame is not a call to a managed method, returns the name of the special frame from debugger API.

ToString(Boolean)

Gets the text representation of this stack frame

Declaration
public string ToString(bool full)
Parameters
Type Name Description
System.Boolean full

Indicates whether the method should return full text representation

Returns
Type Description
System.String
Remarks

The full text representation contains full signature of the called method, including argument types. The short text representation only contains the method's name. If this frame is not a call to a managed method, returns the name of the special frame from debugger API.

Back to top CIL Tools (published from sources in GitHub repository).
Generated by DocFX