MetalamaAPI documentationAspect APIMetalama.​Framework.​AdvisingPull­ActionIntroduce­Parameter­And­Pull
Open sandboxFocus

PullAction.IntroduceParameterAndPull Method

IntroduceParameterAndPull(String, IType, TypedConstant, ImmutableArray<AttributeConstruction>)

Creates a PullAction that means that the dependency should be pulled from a new parameter of the calling constructor.

Declaration
public static PullAction IntroduceParameterAndPull(string parameterName, IType parameterType, TypedConstant parameterDefaultValue, ImmutableArray<AttributeConstruction> parameterAttributes = null)
Parameters
Type Name Description
String parameterName

Name of the new parameter.

IType parameterType

Type of the new parameter.

TypedConstant parameterDefaultValue
ImmutableArray<AttributeConstruction> parameterAttributes
Returns
Type Description
PullAction