MetalamaAPI documentationFlashtrace APIFlashtrace.​ContextsCaller­InfoGet­Dynamic
Open sandboxFocus

CallerInfo.GetDynamic Method

GetDynamic(Int32)

Gets a CallerInfo of the caller by performing a stack walk (using System.Diagnostics.StackFrame).

Declaration
public static CallerInfo GetDynamic(int skipFrames)
Parameters
Type Name Description
System.Int32 skipFrames

The number of stack frames to skip.

Returns
Type Description
CallerInfo

A CallerInfo for the caller (skipping the specified number of stack frames), or default if the platform does not support the System.Diagnostics.StackFrame class.