AddParameter(string, IType, RefKind, TypedConstant?)
Adds a parameter to the current indexer and specifies its type using an IType.
Declaration
IParameterBuilder AddParameter(string name, IType type, RefKind refKind = RefKind.None, TypedConstant? defaultValue = null)Parameters
| Type | Name | Description |
|---|---|---|
| string | name | The name of the parameter. |
| IType | type | The type of the parameter. |
| RefKind | refKind | The ref kind of the parameter (e.g., |
| TypedConstant? | defaultValue | The default value of the parameter, or |
Returns
| Type | Description |
|---|---|
| IParameterBuilder | An IParameterBuilder that allows further configuration of the new parameter. |
AddParameter(string, Type, RefKind, TypedConstant?)
Adds a parameter to the current indexer and specifies its type using a reflection Type.
Declaration
IParameterBuilder AddParameter(string name, Type type, RefKind refKind = RefKind.None, TypedConstant? defaultValue = null)Parameters
| Type | Name | Description |
|---|---|---|
| string | name | The name of the parameter. |
| Type | type | The type of the parameter. |
| RefKind | refKind | The ref kind of the parameter (e.g., |
| TypedConstant? | defaultValue | The default value of the parameter, or |
Returns
| Type | Description |
|---|---|
| IParameterBuilder | An IParameterBuilder that allows further configuration of the new parameter. |