Describes the caller of a logging method.
Namespace: Flashtrace.Contexts
Assembly: Flashtrace.dll
Syntax
public readonly struct CallerInfo
Constructors
Name | Description |
---|---|
CallerInfo(RuntimeTypeHandle, string, string, int, int) | Initializes a new instance of the CallerInfo struct specifying the source type as a RuntimeTypeHandle. |
CallerInfo(Type, string, string?, int, int) | Initializes a new instance of the CallerInfo struct specifying the source type as a 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 Type. |
SourceTypeToken | Gets the RuntimeTypeHandle of the caller Type. |
Methods
Name | Description |
---|---|
GetDynamic(int) | Gets a CallerInfo of the caller by performing a stack walk (using StackFrame). |
GetDynamicWhenNull(int) | |
ToString() |