PostSharp5.0/API Reference/Post­Sharp.​Patterns.​Diagnostics.​Record­Builders Namespace/Text­Log­Record­Builder Class/Text­Log­Record­Builder Methods/Text­Log­Record­Builder.​Set­Return­Value Method/Text­Log­Record­Builder.​Set­Return­Value(T) Method (Int32, String, String, T, IFormatter(T))

TextLogRecordBuilder.SetReturnValue<T> Method (Int32, String, String, T, IFormatter<T>)

Sets a given return value (there can be several return values in C# 7.0) and uses a given formatter.

Namespace:  PostSharp.Patterns.Diagnostics.RecordBuilders
Assembly:  PostSharp.Patterns.Diagnostics (in PostSharp.Patterns.Diagnostics.dll) Version: 5.0.55.0 (5.0.55.0)
Syntax
C#
public override void SetReturnValue<T>(
	int index,
	string returnValueName,
	string typeName,
	T value,
	IFormatter<T> formatter
)

Parameters

index
Type: System.Int32
Index of the return value.
returnValueName
Type: System.String
Name of the return value, or null if there is only one return value in the method.
typeName
Type: System.String
Formatted name of the type T.
value
Type: T
Return value.
formatter
Type: PostSharp.Patterns.Formatters.IFormatter<T>
The formatter to be used to format T.

Type Parameters

T
Type of the return value.
See Also