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: 2023.0.3.0 (2023.0.3.0)
C#
public static CallerInfo GetDynamic( int skipFrames )
Parameters
- skipFrames
- Type: System.Int32
The number of stack frames to skip.
Return Value
Type: CallerInfoA CallerInfo for the caller (skipping the specified number of stack frames), or default if the platform does not support the StackFrame class.