PostSharp 5.0 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Diagnostics.​Contexts Namespace / Caller­Info Structure / Caller­Info Constructor / Caller­Info Constructor (Runtime­Type­Handle, String, String, Int32, Int32)

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

Initializes a new CallerInfo, and uses as a RuntimeTypeHandle to specify the source type.

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 CallerInfo(
	RuntimeTypeHandle sourceTypeToken,
	string methodName,
	string file,
	int line,
	int column
)

Parameters

sourceTypeToken
Type: System.RuntimeTypeHandle
RuntimeTypeHandle of the calling type.
methodName
Type: System.String
Name of the calling method.
file
Type: System.String
Path of the source code of the calling code.
line
Type: System.Int32
Line in file of the caller.
column
Type: System.Int32
Column in file of the caller.
See Also