PostSharpAPI ReferencePost­Sharp.​Patterns.​Diagnostics.​ContextsCaller­InfoGet­Dynamic
Open sandboxFocus

CallerInfo.GetDynamic Method

GetDynamic(Int32)

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

Declaration
public static CallerInfo GetDynamic(int skipFrames)
Parameters
Type Name Description
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 StackFrame class.