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.7.12.0 (6.7.12.0)
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.