MetalamaAPI documentationFlashtrace APIFlashtrace.​ContextsCaller­InfoCaller­Info
Open sandboxFocus

CallerInfo Constructor

CallerInfo(RuntimeTypeHandle, String, String, Int32, Int32)

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

Declaration
public CallerInfo(RuntimeTypeHandle sourceTypeToken, string methodName, string file, int line, int column)
Parameters
Type Name Description
RuntimeTypeHandle sourceTypeToken

RuntimeTypeHandle of the calling type.

String methodName

Name of the calling method.

String file

Path of the source code of the calling code.

Int32 line

Line in file of the caller.

Int32 column

Column in file of the caller.

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

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

Declaration
public CallerInfo(Type sourceType, string methodName, string file, int line, int column)
Parameters
Type Name Description
Type sourceType

Type of the calling type.

String methodName

Name of the calling method.

String file

Path of the source code of the calling code.

Int32 line

Line in file of the caller.

Int32 column

Column in file of the caller.