PostSharpAPI ReferencePost­Sharp.​Patterns.​Diagnostics.​Record­BuildersText­Log­Record­BuilderSet­This
Open sandboxFocus

TextLogRecordBuilder.SetThis Method

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>)