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

IIndexerBuilder.AddParameter Method

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
System.String name
IType type
RefKind refKind
System.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 System.Type.

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