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: 2023.0.3.0 (2023.0.3.0)
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.