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 System.RuntimeTypeHandle.

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

System.RuntimeTypeHandle of the calling type.

System.String methodName

Name of the calling method.

System.String file

Path of the source code of the calling code.

System.Int32 line

Line in file of the caller.

System.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 System.Type.

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

System.Type of the calling type.

System.String methodName

Name of the calling method.

System.String file

Path of the source code of the calling code.

System.Int32 line

Line in file of the caller.

System.Int32 column

Column in file of the caller.