InsertParameter(int, string, IType, RefKind, TypedConstant?)
Inserts a parameter at the specified index in the method's parameter list.
Declaration
IParameterBuilder InsertParameter(int index, string name, IType type, RefKind refKind = RefKind.None, TypedConstant? defaultValue = null)Parameters
| Type | Name | Description |
|---|---|---|
| int | index | The zero-based index at which the parameter should be inserted. |
| 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. |
InsertParameter(int, string, Type, RefKind, TypedConstant?)
Inserts a parameter at the specified index in the method's parameter list.
Declaration
IParameterBuilder InsertParameter(int index, string name, Type type, RefKind refKind = RefKind.None, TypedConstant? defaultValue = null)Parameters
| Type | Name | Description |
|---|---|---|
| int | index | The zero-based index at which the parameter should be inserted. |
| 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. |