PostSharp 6.5 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Diagnostics.​Record­Builders Namespace / Text­Log­Record­Builder Class / Text­Log­Record­Builder Methods / Text­Log­Record­Builder.​Set­This Method / Text­Log­Record­Builder.​Set­This(T) Method (T, IFormatter(T))

TextLogRecordBuilder.SetThis<T> Method (T, IFormatter<T>)

Sets the this (instance) value and uses a given formatter.

Namespace:  PostSharp.Patterns.Diagnostics.RecordBuilders
Assembly:  PostSharp.Patterns.Diagnostics (in PostSharp.Patterns.Diagnostics.dll) Version: 6.5.19.0 (6.5.19.0)
Syntax
C#
public override void SetThis<T>(
	T value,
	IFormatter<T> formatter
)

Parameters

value
Type: T
The value of the this instance.
formatter
Type: PostSharp.Patterns.Formatters.IFormatter<T>
The formatter to be used.

Type Parameters

T
Type of the class being logged.
See Also