PostSharpAPI ReferencePost­Sharp.​Patterns.​Diagnostics.​ContextsCaller­Info
Open sandboxFocus

CallerInfo Class

Represents information about the caller of the Logger class.

Inheritance
CallerInfo
Namespace: PostSharp.Patterns.Diagnostics.Contexts
Assembly: PostSharp.Patterns.Common.dll
Syntax
public sealed class CallerInfo : ValueType

Constructors

Name Description
CallerInfo(RuntimeTypeHandle, String, String, Int32, Int32)
CallerInfo(RuntimeTypeHandle, String, String, Int32, Int32, CallerAttributes)

Initializes a new CallerInfo, and uses as a System.RuntimeTypeHandle to specify the source type.

CallerInfo(Type, String, String, Int32, Int32)
CallerInfo(Type, String, String, Int32, Int32, CallerAttributes)

Initializes a new CallerInfo, and uses as a System.Type to specify the source type.

Properties

Name Description
Attributes

Gets the caller attributes.

IsAsync

Determines whether the caller is an async method.

IsNull

Determines whether the current CallerInfo is null.

MethodName

Gets the name of the caller method.

SourceLineInfo

Gets the SourceLineInfo of the caller.

SourceType

Gets the source System.Type.

SourceTypeToken

Gets the System.RuntimeTypeHandle of the caller System.Type.

Methods

Name Description
GetDynamic(Int32)

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

ToString()