SetReturnValue<T>(int, string, string, T)
Sets a given return value (there can be several return values in C# 7.0) and uses the default formatter.
Declaration
public void SetReturnValue<T>(int index, string returnValueName, string typeName, T value)Parameters
| Type | Name | Description |
|---|---|---|
| int | index | Index of the return value. |
| string | returnValueName | Name of the return value, or |
| string | typeName | Formatted name of the type |
| T | value | Return value. |
Type Parameters
| Name | Description |
|---|---|
| T | Type of the return value. |
SetReturnValue<T>(int, 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.
Declaration
public virtual void SetReturnValue<T>(int index, string returnValueName, string typeName, T value, IFormatter<T> formatter)Parameters
| Type | Name | Description |
|---|---|---|
| int | index | Index of the return value. |
| string | returnValueName | Name of the return value, or |
| string | typeName | Formatted name of the type |
| T | value | Return value. |
| IFormatter<T> | formatter | The formatter to be used to format |
Type Parameters
| Name | Description |
|---|---|
| T | Type of the return value. |