PostSharp 6.8 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Diagnostics.​Contexts Namespace / Caller­Info Structure / Caller­Info Methods / Caller­Info.​Get­Dynamic Method

CallerInfo.GetDynamic Method

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

Namespace:  PostSharp.Patterns.Diagnostics.Contexts
Assembly:  PostSharp.Patterns.Common (in PostSharp.Patterns.Common.dll) Version: 6.8.6.0 (6.8.6.0)
Syntax
C#
public static CallerInfo GetDynamic(
	int skipFrames
)

Parameters

skipFrames
Type: System.Int32
The number of stack frames to skip.

Return Value

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