MetalamaAPI documentationAspect APIMetalama.​Framework.​Code.​Declaration­BuildersIIndexer­BuilderAdd­Parameter
Open sandboxFocus

Method AddParameter

AddParameter(String, IType, RefKind, Nullable<TypedConstant>)

Adds a parameter to the current indexer and specifies its type using an IType.

Declaration
IParameterBuilder AddParameter(string name, IType type, RefKind refKind, Nullable<TypedConstant> defaultValue = null)
Parameters
Type Name Description
String name
IType type
RefKind refKind
Nullable<TypedConstant> defaultValue
Returns
Type Description
IParameterBuilder

AddParameter(String, Type, RefKind, Nullable<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, Nullable<TypedConstant> defaultValue = null)
Parameters
Type Name Description
String name
Type type
RefKind refKind
Nullable<TypedConstant> defaultValue
Returns
Type Description
IParameterBuilder