MetalamaAPI documentationFlashtrace APIFlashtrace.​ContextsCaller­Info
Open sandboxFocus

CallerInfo Class

Describes the caller of a logging method.

Inheritance
System.Object
CallerInfo
Namespace: Flashtrace.Contexts
Assembly: Flashtrace.dll
Syntax
public sealed class CallerInfo : ValueType

Constructors

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

Initializes a new instance of the CallerInfo struct specifying the source type as a System.RuntimeTypeHandle.

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

Initializes a new instance of the CallerInfo struct specifying the source type as a System.Type.

Properties

Name Description
IsNull

Gets a value indicating 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 System.Diagnostics.StackFrame).

GetDynamicWhenNull(Int32)
ToString()