PostSharp 5.0 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Diagnostics.​Contexts Namespace / Caller­Info Structure

CallerInfo Structure

Represents information about the caller of the Logger class.

Namespace:  PostSharp.Patterns.Diagnostics.Contexts
Assembly:  PostSharp.Patterns.Common (in PostSharp.Patterns.Common.dll) Version: 5.0.55.0 (5.0.55.0)
Syntax
C#
public struct CallerInfo

The CallerInfo type exposes the following members.

Constructors
  NameDescription
Public methodCallerInfo(RuntimeTypeHandle, String, String, Int32, Int32)
Initializes a new CallerInfo, and uses as a RuntimeTypeHandle to specify the source type.
Public methodCallerInfo(Type, String, String, Int32, Int32)
Initializes a new CallerInfo, and uses as a Type to specify the source type.
Properties
  NameDescription
Public propertyIsNull
Determines whether the current CallerInfo is null.
Public propertyMethodName
Gets the name of the caller method.
Public propertySourceLineInfo
Gets the SourceLineInfo of the caller.
Public propertySourceType
Gets the source Type.
Public propertySourceTypeToken
Gets the RuntimeTypeHandle of the caller Type.
Extension Methods
  NameDescription
Public Extension MethodQueryInterface<T>
Gets the implementation of a specified interface for the specified object.
(Defined by QueryInterfaceExtensions.)
See Also