Open sandboxFocus

Method IntroduceParameter

IntroduceParameter(IAdviser<IConstructor>, string, IType, TypedConstant, Func<IParameter, IConstructor, PullAction>?, ImmutableArray<AttributeConstruction>)

Declaration
public static IIntroductionAdviceResult<IParameter> IntroduceParameter(this IAdviser<IConstructor> adviser, string parameterName, IType parameterType, TypedConstant defaultValue, Func<IParameter, IConstructor, PullAction>? pullAction = null, ImmutableArray<AttributeConstruction> attributes = default)
Parameters
Type Name Description
IAdviser<IConstructor> adviser
string parameterName
IType parameterType
TypedConstant defaultValue
Func<IParameter, IConstructor, PullAction> pullAction
ImmutableArray<AttributeConstruction> attributes
Returns
Type Description
IIntroductionAdviceResult<IParameter>

IntroduceParameter(IAdviser<IConstructor>, string, Type, TypedConstant, Func<IParameter, IConstructor, PullAction>?, ImmutableArray<AttributeConstruction>)

Declaration
public static IIntroductionAdviceResult<IParameter> IntroduceParameter(this IAdviser<IConstructor> adviser, string parameterName, Type parameterType, TypedConstant defaultValue, Func<IParameter, IConstructor, PullAction>? pullAction = null, ImmutableArray<AttributeConstruction> attributes = default)
Parameters
Type Name Description
IAdviser<IConstructor> adviser
string parameterName
Type parameterType
TypedConstant defaultValue
Func<IParameter, IConstructor, PullAction> pullAction
ImmutableArray<AttributeConstruction> attributes
Returns
Type Description
IIntroductionAdviceResult<IParameter>