PostSharp / / API Reference / Post­Sharp.​Patterns.​Diagnostics.​Record­Builders / Text­Log­Record­Builder / Set­This
Open sandbox

Method SetThis

SetThis<T>(T, IFormatter<T>)

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

Declaration
public override void SetThis<T>(T value, IFormatter<T> formatter)
Parameters
Type Name Description
T value

The value of the this instance.

IFormatter<T> formatter

The formatter to be used.

Type Parameters
Name Description
T

Type of the class being logged.

Overrides
PostSharp.Patterns.Diagnostics.RecordBuilders.LogRecordBuilder.SetThis<T>(T, PostSharp.Patterns.Formatters.IFormatter<T>)