Metalama 1.0 / / Metalama Documentation / Extensions API / Metalama.​Extensions.​Dependency­Injection.​Implementation / Default­Pull­Strategy / Get­New­Parameter

Method GetNewParameter

GetNewParameter(IConstructor)

Gets the specifications from which a constructor parameter can be constructed. This method is called when GetExistingParameter(IConstructor) returns null.

Declaration
public virtual ParameterSpecification GetNewParameter(IConstructor constructor)
Parameters
Type Name Description
IConstructor constructor

The constructor into which the parameter will be added.

Returns
Type Description
ParameterSpecification
Implements
IPullStrategy.GetNewParameter(IConstructor)