Open sandboxFocus

Method AddParameter

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
IType type
RefKind refKind
TypedConstant? defaultValue
Returns
Type Description
IParameterBuilder

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
Type type
RefKind refKind
TypedConstant? defaultValue
Returns
Type Description
IParameterBuilder