Open sandboxFocus

Method IntroduceParameterAndPull

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 = default)
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