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

LogRecordBuilder.SetReturnValue<T> Method (Int32, String, String, T)

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

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

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.

Type Parameters

T
Type of the return value.
See Also