IMethodBaseBuilder.AddParameter Method
AddParameter(string, IType, RefKind, TypedConstant?)
Appends a parameter to the method.
Declaration
IParameterBuilder AddParameter(string name, IType type, RefKind refKind = RefKind.None, TypedConstant? defaultValue = null)
Parameters
Type | Name | Description |
---|---|---|
string | name | Parameter name. |
IType | type | Parameter type. |
RefKind | refKind |
|
TypedConstant? | defaultValue | Default value. |
Returns
Type | Description |
---|---|
IParameterBuilder | A IParameterBuilder that allows you to further build the new parameter. |
AddParameter(string, Type, RefKind, TypedConstant?)
Appends a parameter to the method.
Declaration
IParameterBuilder AddParameter(string name, Type type, RefKind refKind = RefKind.None, TypedConstant? defaultValue = null)
Parameters
Type | Name | Description |
---|---|---|
string | name | Parameter name. |
Type | type | Parameter type. |
RefKind | refKind |
|
TypedConstant? | defaultValue | Default value. |
Returns
Type | Description |
---|---|
IParameterBuilder | A IParameterBuilder that allows you to further build the new parameter. |