SetParameter<T>(int, string, ParameterKind, string, T)
Sets the value of a given parameter and uses the default formatter.
Declaration
public void SetParameter<T>(int index, string parameterName, ParameterKind parameterKind, string typeName, T value)
Parameters
Type | Name | Description |
---|---|---|
int | index | Index of the parameter in the list of method parameters. |
string | parameterName | Name of the parameter (only included if the IncludeParameterName property is |
ParameterKind | parameterKind | The kind of the parameter (whether the parameter is by ref or by value, input or output). |
string | typeName | Formatted name of the type |
T | value | Value of the parameter (only included if the IncludeParameterValue property is |
Type Parameters
Name | Description |
---|---|
T | Type of the parameter. |
Remarks
The return value is set by the method SetReturnValue<T>(int, string, string, T).
Thus the value of the parameterKind
is never ReturnValue or ReturnRef.
SetParameter<T>(int, string, ParameterKind, string, T, IFormatter<T>)
Sets the value of a given parameter and specifies the Formatter<T>.
Declaration
public virtual void SetParameter<T>(int index, string parameterName, ParameterKind parameterKind, string typeName, T value, IFormatter<T> formatter)
Parameters
Type | Name | Description |
---|---|---|
int | index | Index of the parameter in the list of method parameters. |
string | parameterName | Name of the parameter (only included if the IncludeParameterName property is |
ParameterKind | parameterKind | The kind of the parameter (whether the parameter is by ref or by value, input or output). |
string | typeName | Formatted name of the type |
T | value | Value of the parameter (only included if the IncludeParameterValue property is |
IFormatter<T> | formatter | Formatter to be used to format |
Type Parameters
Name | Description |
---|---|
T | Type of the parameter. |
Remarks
The return value is set by the method SetReturnValue<T>(int, string, string, T, IFormatter<T>).
Thus the value of the parameterKind
is never ReturnValue or ReturnRef.